Move chocolatey setup into separate sls for easier inclusion
This commit is contained in:
parent
7c4cfda4f4
commit
644e5e9eb5
10
chocolatey.sls
Normal file
10
chocolatey.sls
Normal file
@ -0,0 +1,10 @@
|
||||
chocolateyBootstrap:
|
||||
module.run:
|
||||
- name: chocolatey.bootstrap
|
||||
|
||||
chocolateySource:
|
||||
module.run:
|
||||
- name: chocolatey.add_source
|
||||
- m_name: UCS
|
||||
- source_location: \\ucs\software\nupkg
|
||||
- requires: chocolateyBootstrap
|
@ -1,12 +1,5 @@
|
||||
chocolateyBootstrap:
|
||||
module.run:
|
||||
- name: chocolatey.bootstrap
|
||||
|
||||
chocolateySource:
|
||||
module.run:
|
||||
- name: chocolatey.add_source
|
||||
- m_name: UCS
|
||||
- source_location: \\ucs\software\nupkg
|
||||
include:
|
||||
- chocolatey
|
||||
|
||||
{% import_yaml "packages.yaml" as packages %}
|
||||
{% for pkg in packages %}
|
||||
@ -14,8 +7,7 @@ chocolateySource:
|
||||
chocolatey.installed:
|
||||
- name: {{ pkg }}
|
||||
- require:
|
||||
- chocolateyBootstrap
|
||||
- chocolateySource
|
||||
- sls: chocolatey
|
||||
{% endfor %}
|
||||
|
||||
Upgrade All:
|
||||
|
Loading…
Reference in New Issue
Block a user