Skip to content

Instantly share code, notes, and snippets.

@whytewolf
Last active August 17, 2017 06:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save whytewolf/3f8007ad5e2b620af12be42f3e1b4724 to your computer and use it in GitHub Desktop.
Save whytewolf/3f8007ad5e2b620af12be42f3e1b4724 to your computer and use it in GitHub Desktop.
{% 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