summaryrefslogtreecommitdiffstats
path: root/modules/base
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2020-07-05 15:49:17 -0400
committerJesse Luehrs <doy@tozt.net>2020-07-05 16:20:00 -0400
commit7c784de79327fbc9fd62404d69fe6813f9c6f559 (patch)
treedace1d0628f31faeba233fa67df1531e2d6f7ca6 /modules/base
parent8f3c8ce6f76349e1181cf60e5b2ed17941675ef3 (diff)
downloadpuppet-tozt-7c784de79327fbc9fd62404d69fe6813f9c6f559.tar.gz
puppet-tozt-7c784de79327fbc9fd62404d69fe6813f9c6f559.zip
add input plugin for pacman updates
Diffstat (limited to 'modules/base')
-rw-r--r--modules/base/files/pacman-cron3
-rw-r--r--modules/base/manifests/operatingsystem.pp6
2 files changed, 9 insertions, 0 deletions
diff --git a/modules/base/files/pacman-cron b/modules/base/files/pacman-cron
new file mode 100644
index 0000000..30b859f
--- /dev/null
+++ b/modules/base/files/pacman-cron
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+yaourt -Sya > /dev/null
diff --git a/modules/base/manifests/operatingsystem.pp b/modules/base/manifests/operatingsystem.pp
index e5425f3..4a65015 100644
--- a/modules/base/manifests/operatingsystem.pp
+++ b/modules/base/manifests/operatingsystem.pp
@@ -1,4 +1,6 @@
class base::operatingsystem {
+ include cron
+
file {
"/etc/locale.gen":
content => "en_US.UTF-8 UTF-8\n",
@@ -16,6 +18,10 @@ class base::operatingsystem {
content => template('base/hosts');
'/etc/yaourtrc':
source => 'puppet:///modules/base/yaourtrc';
+ '/etc/cron.hourly/pacman':
+ source => 'puppet:///modules/base/pacman-cron',
+ mode => '0755',
+ require => Class['cron'];
}
exec { "regen locale data":