summaryrefslogtreecommitdiff
path: root/puppet
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2013-06-24 00:02:19 +0200
committervarac <varacanero@zeromail.org>2013-06-25 16:37:26 +0200
commitf2f4b3cfc2ad70e649da42ef82cca7c2e1d73096 (patch)
tree3ca8ad4e73ad4d161eff91aeda5648c26b3c055f /puppet
parent52c79fd7d25c33637197f08a8b7736fdc8a83414 (diff)
Install all packages after refresh_apt (Feature #2971)
Diffstat (limited to 'puppet')
-rw-r--r--puppet/modules/site_apt/manifests/init.pp8
1 files changed, 8 insertions, 0 deletions
diff --git a/puppet/modules/site_apt/manifests/init.pp b/puppet/modules/site_apt/manifests/init.pp
index c33b7a84..0da7f3be 100644
--- a/puppet/modules/site_apt/manifests/init.pp
+++ b/puppet/modules/site_apt/manifests/init.pp
@@ -28,4 +28,12 @@ class site_apt {
priority => 999
}
+ # All packages should be installed _after_ refresh_apt is called,
+ # which does an apt-get update.
+ # There is one exception:
+ # The creation of sources.list depends on the lsb package
+
+ File['/etc/apt/preferences'] ->
+ Exec['refresh_apt']
+ Package <| ( title != 'lsb' ) |>
}