2012-07-24 15:03:23 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
if ! test -z $1 ; then
|
2014-09-04 02:06:12 +00:00
|
|
|
BASE_DIR=$1
|
2012-07-24 15:03:23 +00:00
|
|
|
else
|
2014-09-04 02:06:12 +00:00
|
|
|
BASE_DIR=`pwd`
|
2012-07-24 15:03:23 +00:00
|
|
|
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 && \
|
2014-09-04 02:06:12 +00:00
|
|
|
/bin/bash install_modules.sh && \
|
|
|
|
/usr/bin/puppet apply -l $MANIFEST_LOG --modulepath=$MODULE_PATH manifests/site.pp
|