From cf8932462512acbe0567eb8fce151c54c13ef3e7 Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Thu, 16 Jan 2020 12:35:56 -0500 Subject: [PATCH] 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 --- windowsWorkstation.sls | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/windowsWorkstation.sls b/windowsWorkstation.sls index de157cb..7df7ea3 100644 --- a/windowsWorkstation.sls +++ b/windowsWorkstation.sls @@ -11,13 +11,18 @@ chocolateySource: {% import_yaml "packages.yaml" as packages %} {% for pkg in packages %} {{ pkg }}: - chocolatey.upgraded: + chocolatey.installed: - name: {{ pkg }} - require: - chocolateyBootstrap - chocolateySource {% endfor %} +Upgrade All: + chocolatey.upgraded: + - name: all + - require: + - chocolateyBootstrap # windowsUpdates: # wua.uptodate: