diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2024-08-07 22:18:47 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2024-08-07 22:18:47 -0300 |
commit | 5e1a2fd439e7782a377fb9f22aa8f5efb7412c75 (patch) | |
tree | 44bc6ca14759b3dccde4ccbf09922ea5769f9160 /manifests | |
parent | 0294b14547ea0bf19809d90ca30db905fd582d48 (diff) | |
download | puppet-nodo-5e1a2fd439e7782a377fb9f22aa8f5efb7412c75.tar.gz puppet-nodo-5e1a2fd439e7782a377fb9f22aa8f5efb7412c75.tar.bz2 |
Fix: apt: manage /etc/apt/preferences
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/subsystem/apt.pp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/manifests/subsystem/apt.pp b/manifests/subsystem/apt.pp index d2d531d..2dcbc26 100644 --- a/manifests/subsystem/apt.pp +++ b/manifests/subsystem/apt.pp @@ -57,6 +57,18 @@ class nodo::subsystem::apt( }, } + file { '/etc/apt/preferences': + ensure => present, + owner => root, + group => root, + mode => '0644', + require => [ File['/etc/apt/apt.conf.d/1000-force-ipv4-transport'], Package['apt-transport-https'] ], + content => $ensure ? { + 'present' => template("nodo/apt/${::operatingsystem}.preferences.erb"), + default => undef, + }, + } + # We have /var/log/dpkg.log, so we do not need to rotate /var/log/upgrade.log $log = ">> /var/log/upgrade.log 2>&1" $apt = '/usr/bin/apt-get' |