utilities/apt_upgrade: hold puppet-agent to prevent breaking on oVirt

This commit is contained in:
ts
2019-02-15 17:25:26 +00:00
parent 47217d26e4
commit 9293aba51f

View File

@@ -7,12 +7,17 @@ class apt_upgrade::apt {
} else {
case $operatingsystem {
'Debian': {
# can't upgrade puppet agent mid-provision or it breaks on oVirt.
exec { 'hold puppet-agent':
command => '/usr/bin/apt hold puppet-agent'
}
exec { 'update':
command => "/usr/bin/apt-get -y upgrade",
tries => 5,
try_sleep => 30,
timeout => 0,
logoutput => true,
require => Exec['hold puppet agent'],
}
}
'Ubuntu': {