Skip to content

Instantly share code, notes, and snippets.

@valentinbud
Created September 13, 2013 07:00
Show Gist options
  • Save valentinbud/6547490 to your computer and use it in GitHub Desktop.
Save valentinbud/6547490 to your computer and use it in GitHub Desktop.
#!/bin/bash
#
# This hook updates the local pillar data.
# It basically runs `git pull` in salt master's
# pillar_roots directory.
#
# Only suports one environment - base. The branch is master
# and the environment production.
#
echo "UPDATING LOCAL PILLAR"
cd /srv/salt/salt-pillar
pwd
git pull
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment