diff options
author | nadir <nadir-technik@nadir.org> | 2012-12-19 18:30:29 +0100 |
---|---|---|
committer | nadir <nadir-technik@nadir.org> | 2012-12-19 18:30:29 +0100 |
commit | 37e40416d2aa7614cfbcd4330d4cd543f9874093 (patch) | |
tree | 5cc43263b2cac52a63cf0f9171a7a7e905ca79d8 /manifests | |
parent | 3a473dafd5887cb77b0b764dd951d9581b69f160 (diff) |
exec{'apt_dist-upgrade'} just requires Exec['apt_updated'] if apt::disable_update if false
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/dist_upgrade.pp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/manifests/dist_upgrade.pp b/manifests/dist_upgrade.pp index 47b1cff..ed25b0b 100644 --- a/manifests/dist_upgrade.pp +++ b/manifests/dist_upgrade.pp @@ -7,7 +7,10 @@ class apt::dist_upgrade { exec { 'apt_dist-upgrade': command => "/usr/bin/apt-get -q -y -o 'DPkg::Options::=--force-confold' dist-upgrade", refreshonly => true, - require => Exec['apt_updated'], + require => $apt::disable_update ? { + true => undef, + default => Exec['apt_updated'], + } } } |