File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 22# vim: ft=sls
33{% from " packages/map.jinja" import packages with context % }
44
5+ {% if packages.chocolatey % }
56{% set req_states = packages.chocolatey.required.states % }
67{% set req_pkgs = packages.chocolatey.required.pkgs % }
78{% set wanted_chocolatey = packages.chocolatey.wanted % }
@@ -20,6 +21,7 @@ chocolatey_req_pkgs:
2021 - retry: {{ packages.retry_options| json }}
2122
2223# ## CHOCOLATEY PACKAGES to install
24+ {% if wanted_chocolatey % }
2325{% for choco, settings in wanted_chocolatey.items() % }
2426{{ choco }}:
2527 chocolatey.installed:
@@ -34,10 +36,14 @@ chocolatey_req_pkgs:
3436 - package_args: {{ ' ' if ' package_args' not in settings else settings.package_args }}
3537 - allow_multiple: {{ False if ' allow_multiple' not in settings else settings.allow_multiple }}
3638{% endfor % }
39+ {% endif % }
3740
3841# ## CHOCOLATEY PACKAGES to uninstall
42+ {% if unwanted_chocolatey % }
3943{% for uchoco in unwanted_chocolatey % }
4044{{ uchoco }}:
4145 chocolatey.uninstalled:
4246 - name: {{ uchoco }}
4347{% endfor % }
48+ {% endif % }
49+ {% endif % }
You can’t perform that action at this time.
0 commit comments