System configuration for OpenStack Infrastructure
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
357B

  1. #!/bin/bash
  2. if ! test -z $1 ; then
  3. BASE_DIR=$1
  4. else
  5. BASE_DIR=`pwd`
  6. fi
  7. MODULE_DIR=${BASE_DIR}/modules
  8. MODULE_PATH=${MODULE_DIR}:/etc/puppet/modules
  9. MANIFEST_LOG=/var/log/manifest.log
  10. cd $BASE_DIR
  11. /usr/bin/git pull -q && \
  12. /bin/bash install_modules.sh && \
  13. /usr/bin/puppet apply -l $MANIFEST_LOG --modulepath=$MODULE_PATH manifests/site.pp