diff --git a/chocolatey.sls b/chocolatey.sls new file mode 100644 index 0000000..aa9705b --- /dev/null +++ b/chocolatey.sls @@ -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 diff --git a/windowsWorkstation.sls b/windowsWorkstation.sls index 5729ef5..2300b68 100644 --- a/windowsWorkstation.sls +++ b/windowsWorkstation.sls @@ -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: