mirror of
https://github.com/cliffe/SecGen.git
synced 2026-02-22 03:38:01 +00:00
utilities/apt_upgrade: hold puppet-agent to prevent breaking on oVirt
This commit is contained in:
@@ -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': {
|
||||
|
||||
Reference in New Issue
Block a user