diff --git a/manifests/init.pp b/manifests/init.pp index 5b7af1e..d688cb3 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -51,7 +51,9 @@ ensure => $package_ensure, } + $ensure_status = $enable ? { 0 => 'absent', default => 'present' } apt::conf { 'unattended-upgrades': + ensure => $ensure_status, priority => 50, content => template("${module_name}/unattended-upgrades.erb"), require => Package['unattended-upgrades'], @@ -59,6 +61,7 @@ } apt::conf { 'periodic': + ensure => $ensure_status, priority => 10, content => template("${module_name}/periodic.erb"), require => Package['unattended-upgrades'],