ed57cef9c5
This allows hiera data to be split into two buckets: sensitive and non-sensitive. Sensitive data is put where it always has been. Non- sensitive data, such as users ssh keys and lists of packages can be put into the data directory contained within the openstack-infra/config git repository. This also introduces a more complex hierarchy: data is now split on osfamily and lsbdistcondename. Operatingsystem is left for compatibility. Change-Id: I3b3faeab837aa5732da01e96bbe0c19aa936a58d
17 lines
369 B
Bash
Executable File
17 lines
369 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 --confdir=$BASE_DIR --modulepath=$MODULE_PATH manifests/site.pp
|