-
-
Save anonymous/f59f9b5bbbc01a18a469 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% for package in salt['pillar.get']('pkgs::install') %} | |
{% if package is string %} | |
{{ package }}-pkg-install: | |
pkg.installed: | |
- name: {{ package }} | |
- skip_verify: True | |
{% endif %} | |
{% if package is mapping %} | |
{{ package.name }}-pkg-install: | |
pkg.installed: | |
- name: {{ package.name }} | |
- version: {{ package.version }} | |
- allow_updates: {{ package.allow_updates }} | |
{% endif %} | |
{% endfor %} | |
{% if salt['pillar.get']('pkgs:global:remove', []) > 1 %} | |
{% for package in salt['pillar.get']('pkgs:global:remove') %} | |
{{ package }}-pkg-remove: | |
pkg.purged: | |
- name: {{ package }} | |
{% endfor %} | |
{% endif %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment