summaryrefslogtreecommitdiff
path: root/puppet
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2013-01-29 16:36:29 +0100
committervarac <varacanero@zeromail.org>2013-01-29 16:36:29 +0100
commitbe81edd7aa5e35c9bd79cd77946e6e7d17288bee (patch)
tree086a6a38ff11889d9a93dc26e6d6145c651739b7 /puppet
parentdd39a69c717cb01b604e8df84217288cc8133fa1 (diff)
apt-get update + dist-upgrade in initial stage
Diffstat (limited to 'puppet')
-rw-r--r--puppet/modules/site_apt/manifests/dist_upgrade.pp16
1 files changed, 10 insertions, 6 deletions
diff --git a/puppet/modules/site_apt/manifests/dist_upgrade.pp b/puppet/modules/site_apt/manifests/dist_upgrade.pp
index 87a2fc00..f129dd73 100644
--- a/puppet/modules/site_apt/manifests/dist_upgrade.pp
+++ b/puppet/modules/site_apt/manifests/dist_upgrade.pp
@@ -1,11 +1,15 @@
-class site_apt::dist_upgrade inherits apt::dist_upgrade {
+class site_apt::dist_upgrade {
if $::apt_running == 'true' {
fail ('apt-get is running in background - Please wait until it finishes. Exiting.')
+ } else {
+ exec{'initial_apt_update':
+ command => '/usr/bin/apt-get update && /usr/bin/apt-get autoclean',
+ refreshonly => false,
+ }
+ exec{'initial_apt_dist_upgrade':
+ command => "/usr/bin/apt-get -q -y -o 'DPkg::Options::=--force-confold' dist-upgrade",
+ refreshonly => false,
+ }
}
- # ensue dist-upgrade on every puppetrun
- Exec['apt_dist-upgrade']{
- refreshonly => false,
- }
-
}