aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2011-12-10 12:24:51 -0200
committerSilvio Rhatto <rhatto@riseup.net>2011-12-10 12:24:51 -0200
commit5cfa4e56cb68f89cb802dedc280b1cbb282d072d (patch)
treeb1a4acaea383f4cf02cce80d90e376829087ea65 /manifests
parent7aec8f48970c0093f5c81742dc6f309f142ffca7 (diff)
downloadpuppet-nodo-5cfa4e56cb68f89cb802dedc280b1cbb282d072d.tar.gz
puppet-nodo-5cfa4e56cb68f89cb802dedc280b1cbb282d072d.tar.bz2
Support for 'absent' at apt::sources_list
Diffstat (limited to 'manifests')
-rw-r--r--manifests/nodo.pp8
1 files changed, 5 insertions, 3 deletions
diff --git a/manifests/nodo.pp b/manifests/nodo.pp
index dcdbedd..ce7a0e0 100644
--- a/manifests/nodo.pp
+++ b/manifests/nodo.pp
@@ -44,9 +44,11 @@ class nodo {
include apt
include apt::unattended_upgrades
- if $apt_domain_source == true {
- apt::sources_list { "$domain.list":
- source => "puppet:///modules/site-apt/sources.list.d/$domain.list",
+ apt::sources_list { "$domain.list":
+ source => "puppet:///modules/site-apt/sources.list.d/$domain.list",
+ ensure => $apt_domain_source ? {
+ true => present,
+ default => absent,
}
}
}