mirror of
https://github.com/saltstack-formulas/packages-formula.git
synced 2025-04-16 17:50:24 +00:00
fix(chocolatey): ensure states only run on Windows systems
This commit is contained in:
parent
385b2238f4
commit
c1d680a9dd
1 changed files with 4 additions and 0 deletions
|
@ -2,6 +2,8 @@
|
|||
# vim: ft=sls
|
||||
{% from "packages/map.jinja" import packages with context %}
|
||||
|
||||
{% if grains['os'] == 'Windows' %}
|
||||
|
||||
{% if packages.chocolatey %}
|
||||
{% set req_states = packages.chocolatey.required.states %}
|
||||
{% set req_pkgs = packages.chocolatey.required.pkgs %}
|
||||
|
@ -47,3 +49,5 @@ chocolatey_req_pkgs:
|
|||
{% endfor %}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
{% endif %}
|
||||
|
|
Loading…
Add table
Reference in a new issue