system-config/run_puppet.sh
Monty Taylor 40471655d3 Add support for install puppet modules.
Change-Id: I0fb81d64daea389a564405c76773108eaeec6684
2012-07-24 10:52:31 -05:00

17 lines
349 B
Bash

#!/bin/bash
if ! test -z $1 ; then
BASE_DIR=$1
else
BASE_DIR=`pwd`
fi
MODULE_DIR=${BASE_DIR}/modules
MODULE_PATH=${MODULE_DIR}:/etc/puppet/modules
MANIFEST_LOG=/var/log/manifest.log
cd $BASE_DIR
/usr/bin/git pull -q && \
/bin/bash install_modules.sh && \
/usr/bin/puppet apply -l $MANIFEST_LOG --modulepath=$MODULE_PATH manifests/site.pp