Add path to installing puppet 3 on nodepool nodes

Instead of looking for an argument, change the install_puppet.sh script
to look for an environment variable to switch to installing puppet3.
Also export this environment variable in prepare_node.sh (albeit with a
default value that does not install puppet3).

Change-Id: I04bee2fa5bb70a4d763edb2f3d30f117cad5d65b
This commit is contained in:
K Jonathan Harker 2014-07-02 16:54:05 -07:00
parent 8bd0056443
commit 726c00c541
2 changed files with 4 additions and 1 deletions

View File

@ -23,7 +23,8 @@
#
# Test condition to install puppet 3
if [ "$1" = '--three' ]; then
PUPPET_VERSION=${PUPPET_VERSION:-2}
if [ "$PUPPET_VERSION" = '3' ]; then
THREE=yes
echo "Running in 3 mode"
fi

View File

@ -25,6 +25,8 @@ PYPY=${PYPY:-false}
ALL_MYSQL_PRIVS=${ALL_MYSQL_PRIVS:-false}
GIT_BASE=${GIT_BASE:-git://git.openstack.org}
export PUPPET_VERSION=${PUPPET_VERSION:-'2'}
# Save the nameservers configured by our provider.
cat >/tmp/forwarding.conf <<EOF
forward-zone: