0a30cc6bc8
A trivial patch giving 755 permissions to run_puppet.sh Change-Id: I1f3c1b3bd90b942f993748931e66bc50056d1922 Signed-off-by: Paul Belanger <paul.belanger@polybeacon.com> Reviewed-on: https://review.openstack.org/13509 Approved: Monty Taylor <mordred@inaugust.com> Reviewed-by: Monty Taylor <mordred@inaugust.com> Tested-by: Jenkins
17 lines
349 B
Bash
Executable File
17 lines
349 B
Bash
Executable File
#!/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
|