aboutsummaryrefslogtreecommitdiff
path: root/manifests/init.pp
diff options
context:
space:
mode:
authornadir <nadir-technik@nadir.org>2012-11-08 10:07:38 +0100
committernadir <nadir-technik@nadir.org>2012-11-08 10:07:38 +0100
commit92e35992ca6e3e4054ac928fe4c266ba967503dc (patch)
tree5df5d27013098685894981dcdbf20ff692dfaf31 /manifests/init.pp
parent4f433dbd5238e6b5211d3b0f240ff58031c3da2b (diff)
downloadpuppet-apt-92e35992ca6e3e4054ac928fe4c266ba967503dc.tar.gz
puppet-apt-92e35992ca6e3e4054ac928fe4c266ba967503dc.tar.bz2
added $apt_disable_update to disable "apt-get update" during puppetruns
Diffstat (limited to 'manifests/init.pp')
-rw-r--r--manifests/init.pp5
1 files changed, 5 insertions, 0 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index 2ae691f..794347f 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -40,6 +40,11 @@ class apt {
'' => 'http://archive.ubuntu.com/ubuntu',
default => "${apt_ubuntu_url}",
}
+ $disable_update = $apt_disable_update ? {
+ '' => false,
+ default => $apt_disable_update
+ }
+
case $operatingsystem {
'debian': {
$repos = $apt_repos ? {