Move chocolatey setup into separate sls for easier inclusion

This commit is contained in:
Adam Goldsmith 2020-01-30 13:14:58 -05:00
parent 7c4cfda4f4
commit 644e5e9eb5
2 changed files with 13 additions and 11 deletions

10
chocolatey.sls Normal file
View 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

View File

@ -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: