Skip to content

Instantly share code, notes, and snippets.

Created March 29, 2017 00:35
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 anonymous/d5ccebcdefd0c3cb398813310fe06bdb to your computer and use it in GitHub Desktop.
Save anonymous/d5ccebcdefd0c3cb398813310fe06bdb to your computer and use it in GitHub Desktop.
salt '*' saltutil.refresh_pillar
salt '*' cmd.run template=jinja \
"echo '\
{{ salt[\"pillar.get\"](\"some_app:git:revision\") }}, \
{{ salt[\"pillar.get\"](\"some_other_app:git:revision\") }}, \
{{ grains.get(\"lsb_distrib_id\") }} {{ grains.get(\"lsb_distrib_release\") }},
| sort > /var/www/versions.csv"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment