From: Silvio Rhatto Date: Fri, 26 Aug 2016 17:55:54 +0000 (-0300) Subject: Fix sources.list management X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=d77e97c6f9331c54015fbcab8d55dd6aa54a9767;p=puppet-nodo.git Fix sources.list management --- 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