exec{'apt_dist-upgrade'} just requires Exec['apt_updated'] if apt::disable_update if false
This commit is contained in:
parent
3a473dafd5
commit
37e40416d2
1 changed files with 4 additions and 1 deletions
|
@ -7,7 +7,10 @@ class apt::dist_upgrade {
|
||||||
exec { 'apt_dist-upgrade':
|
exec { 'apt_dist-upgrade':
|
||||||
command => "/usr/bin/apt-get -q -y -o 'DPkg::Options::=--force-confold' dist-upgrade",
|
command => "/usr/bin/apt-get -q -y -o 'DPkg::Options::=--force-confold' dist-upgrade",
|
||||||
refreshonly => true,
|
refreshonly => true,
|
||||||
require => Exec['apt_updated'],
|
require => $apt::disable_update ? {
|
||||||
|
true => undef,
|
||||||
|
default => Exec['apt_updated'],
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue