workaround to run beaker with puppet4
When running Puppet4, the bin not in $PATH so beaker jobs fail to run Puppet. Also we use SUDO in OpenStack Infra to run Beaker so we can use PATH. This patch is a workaround to make it possible. Change-Id: Ie25a414f86d9d4b9d60e28d2680a13a503abad8b
This commit is contained in:
parent
bce1002bb3
commit
1aa6be67c2
@ -9,6 +9,8 @@ fi
|
||||
if [ "${PUPPET_MAJ_VERSION}" = 4 ]; then
|
||||
export PUPPET_BASE_PATH=/etc/puppetlabs/code
|
||||
export PATH=${PATH}:/opt/puppetlabs/bin
|
||||
# Workaround to deploy puppet for beaker jobs
|
||||
sudo -E ln -s /opt/puppetlabs/bin/puppet /usr/sbin/puppet
|
||||
else
|
||||
export PUPPET_BASE_PATH=/etc/puppet
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user