From 1aa6be67c22411f8fdafed5d4476b7273e83002d Mon Sep 17 00:00:00 2001 From: Emilien Macchi Date: Thu, 9 Jun 2016 10:40:05 -0400 Subject: [PATCH] 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 --- install_modules.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/install_modules.sh b/install_modules.sh index 4932e8b18..2bb02f726 100755 --- a/install_modules.sh +++ b/install_modules.sh @@ -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