summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Dittberner <jandd@cacert.org>2018-02-22 12:50:04 +0100
committerJan Dittberner <jandd@cacert.org>2018-02-22 12:50:04 +0100
commit51edf7e5fb71eb7c1efa4136c280570df6764e44 (patch)
treed034315a21a57a7b6bd1e1fc938e222ef4fd359d
parent04708b6d9aa3b3cc2b638ab4a8027b21a5cdd993 (diff)
downloadcacert-puppet-51edf7e5fb71eb7c1efa4136c280570df6764e44.tar.gz
cacert-puppet-51edf7e5fb71eb7c1efa4136c280570df6764e44.tar.xz
cacert-puppet-51edf7e5fb71eb7c1efa4136c280570df6764e44.zip
Setup apt cron job, install/purge base packages
-rw-r--r--sitemodules/profiles/files/base/apt_periodic.conf5
-rw-r--r--sitemodules/profiles/manifests/base.pp14
2 files changed, 19 insertions, 0 deletions
diff --git a/sitemodules/profiles/files/base/apt_periodic.conf b/sitemodules/profiles/files/base/apt_periodic.conf
new file mode 100644
index 0000000..0d630cf
--- /dev/null
+++ b/sitemodules/profiles/files/base/apt_periodic.conf
@@ -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";
diff --git a/sitemodules/profiles/manifests/base.pp b/sitemodules/profiles/manifests/base.pp
index aa83172..f5e1579 100644
--- a/sitemodules/profiles/manifests/base.pp
+++ b/sitemodules/profiles/manifests/base.pp
@@ -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',