aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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,
}
}
}