Stop puppet during install
We get a lot of puppet-agent[9836]: Could not request certificate: Failed to open TCP connection to puppet:8140 when launching Xenial nodes. It seems to be because puppet is started by the package install now. Ensure it is stopped before we disable it. Change-Id: I4a3d0f4516941494e7c37e8e6859f28ef5b54c10
This commit is contained in:
parent
68b6812595
commit
7c5e2fe008
@ -241,12 +241,15 @@ EOF
|
||||
--assume-yes install -y --force-yes $puppetpkg git $rubypkg
|
||||
# Wipe out templatedir so we don't get warnings about it
|
||||
sed -i '/templatedir/d' /etc/puppet/puppet.conf
|
||||
|
||||
# ensure the agent is stopped and disabled
|
||||
if [ -f /bin/systemctl ]; then
|
||||
service puppet stop
|
||||
systemctl disable puppet
|
||||
else
|
||||
/etc/init.d/puppet stop
|
||||
update-rc.d -f puppet disable
|
||||
fi
|
||||
|
||||
}
|
||||
|
||||
function setup_puppet_opensuse {
|
||||
|
Loading…
Reference in New Issue
Block a user