Last active
August 17, 2017 06:08
-
-
Save whytewolf/3f8007ad5e2b620af12be42f3e1b4724 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
{% set baseline_packs = salt.pillar.get('baseline:packages') %} | |
{% if baseline_packs|length > 0 %} | |
install_baseline: | |
pkg.latest | |
- pkgs: | |
{%for pkg in baseline_packs%} | |
- {{pkg}} | |
{%endfor%} | |
do_we_need_to_restart: | |
service.running: | |
- name: <<service>> | |
- watch: | |
- pkg: install_baseline | |
{% endif %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment