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:
|
include:
|
||||||
module.run:
|
- chocolatey
|
||||||
- name: chocolatey.bootstrap
|
|
||||||
|
|
||||||
chocolateySource:
|
|
||||||
module.run:
|
|
||||||
- name: chocolatey.add_source
|
|
||||||
- m_name: UCS
|
|
||||||
- source_location: \\ucs\software\nupkg
|
|
||||||
|
|
||||||
{% import_yaml "packages.yaml" as packages %}
|
{% import_yaml "packages.yaml" as packages %}
|
||||||
{% for pkg in packages %}
|
{% for pkg in packages %}
|
||||||
@ -14,8 +7,7 @@ chocolateySource:
|
|||||||
chocolatey.installed:
|
chocolatey.installed:
|
||||||
- name: {{ pkg }}
|
- name: {{ pkg }}
|
||||||
- require:
|
- require:
|
||||||
- chocolateyBootstrap
|
- sls: chocolatey
|
||||||
- chocolateySource
|
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
Upgrade All:
|
Upgrade All:
|
||||||
|
Loading…
Reference in New Issue
Block a user