diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2011-12-10 12:24:51 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2011-12-10 12:24:51 -0200 |
commit | 5cfa4e56cb68f89cb802dedc280b1cbb282d072d (patch) | |
tree | b1a4acaea383f4cf02cce80d90e376829087ea65 /manifests | |
parent | 7aec8f48970c0093f5c81742dc6f309f142ffca7 (diff) | |
download | puppet-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.pp | 8 |
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, } } } |