diff options
-rw-r--r-- | manifests/subsystem/apt.pp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/manifests/subsystem/apt.pp b/manifests/subsystem/apt.pp index 7489413..a93125e 100644 --- a/manifests/subsystem/apt.pp +++ b/manifests/subsystem/apt.pp @@ -5,14 +5,14 @@ class nodo::subsystem::apt( $minute = 0, ) { file { '/etc/apt/sources.list': - ensure => $ensure ? { - 'present' => 'present', - default => undef, - }, + ensure => present, owner => root, group => root, mode => 0644, - content => template("nodo/apt/${::operatingsystem}.sources.list.erb"), + content => $ensure ? { + 'present' => template("nodo/apt/${::operatingsystem}.sources.list.erb"), + default => undef, + }, } # We have /var/log/dpkg.log, so we do not need to rotate /var/log/upgrade.log |