diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2016-08-26 14:55:54 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2016-08-26 14:55:54 -0300 |
commit | d77e97c6f9331c54015fbcab8d55dd6aa54a9767 (patch) | |
tree | 0c915ae447eb6c1fabcbacac712343d6ee250567 /manifests | |
parent | f92d0e8d42835473b46615c903d1a56652d45420 (diff) | |
download | puppet-nodo-d77e97c6f9331c54015fbcab8d55dd6aa54a9767.tar.gz puppet-nodo-d77e97c6f9331c54015fbcab8d55dd6aa54a9767.tar.bz2 |
Fix sources.list management
Diffstat (limited to 'manifests')
-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 |