Setup apt cron job, install/purge base packages
authorJan Dittberner <jandd@cacert.org>
Thu, 22 Feb 2018 11:50:04 +0000 (12:50 +0100)
committerJan Dittberner <jandd@cacert.org>
Thu, 22 Feb 2018 11:50:04 +0000 (12:50 +0100)
sitemodules/profiles/files/base/apt_periodic.conf [new file with mode: 0644]
sitemodules/profiles/manifests/base.pp

diff --git a/sitemodules/profiles/files/base/apt_periodic.conf b/sitemodules/profiles/files/base/apt_periodic.conf
new file mode 100644 (file)
index 0000000..0d630cf
--- /dev/null
@@ -0,0 +1,5 @@
+APT::Periodic::Enable "1";
+APT::Periodic::Update-Package-Lists "1";
+APT::Periodic::AutocleanInterval "1";
+APT::Periodic::CleanInterval "1";
+APT::Periodic::Verbose "1";
index aa83172..f5e1579 100644 (file)
@@ -80,11 +80,25 @@ class profiles::base (
     mode   => '0644',
     source => 'puppet:///modules/profiles/base/apt_proxy.conf',
   }
+  file { '/etc/apt/apt.conf.d/10periodic':
+    ensure => file,
+    owner  => 'root',
+    group  => 'root',
+    mode   => '0644',
+    source => 'puppet:///modules/profiles/base/apt_periodic.conf',
+  }
 
   package { 'lsb-release':
     ensure => present,
   }
 
+  package { ['zsh', 'tmux', 'less']:
+    ensure => latest,
+  }
+  package { ['aptitude', 'apticron']:
+    ensure => purged,
+  }
+
   file { '/etc/apt/sources.list':
     ensure  => file,
     owner   => 'root',