Install packages, then upgrade all instead of upgrading each package

Upgrading all allows for dependencies, and the 'installed' check is
faster than the 'upgrade' check
This commit is contained in:
Adam Goldsmith 2020-01-16 12:35:56 -05:00
parent 57dd592298
commit cf89324625

View File

@ -11,13 +11,18 @@ chocolateySource:
{% import_yaml "packages.yaml" as packages %} {% import_yaml "packages.yaml" as packages %}
{% for pkg in packages %} {% for pkg in packages %}
{{ pkg }}: {{ pkg }}:
chocolatey.upgraded: chocolatey.installed:
- name: {{ pkg }} - name: {{ pkg }}
- require: - require:
- chocolateyBootstrap - chocolateyBootstrap
- chocolateySource - chocolateySource
{% endfor %} {% endfor %}
Upgrade All:
chocolatey.upgraded:
- name: all
- require:
- chocolateyBootstrap
# windowsUpdates: # windowsUpdates:
# wua.uptodate: # wua.uptodate: