summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMicah Anderson <micah@riseup.net>2013-02-12 14:05:54 -0500
committerMicah Anderson <micah@riseup.net>2013-02-12 14:06:16 -0500
commit2acaf6e3aa171e22cc28141027ef1b09f335514b (patch)
tree9e86a38bdd249d68b85ab469ed8a65db63221f2d
parent2e03ec8c02a54c407c12964d243ba4ac5de15b99 (diff)
make sure that apt-get update is run before any package is installed (#1745)
-rw-r--r--puppet/manifests/site.pp4
1 files changed, 4 insertions, 0 deletions
diff --git a/puppet/manifests/site.pp b/puppet/manifests/site.pp
index c89bc7d1..8cfa92ef 100644
--- a/puppet/manifests/site.pp
+++ b/puppet/manifests/site.pp
@@ -1,6 +1,10 @@
# set a default exec path
Exec { path => '/usr/bin:/usr/sbin/:/bin:/sbin:/usr/local/bin:/usr/local/sbin' }
+# make sure apt is updated before any packages are installed
+include apt::update
+Package { require => Exec['apt_updated'] }
+
include stdlib
import 'common'