diff options
Diffstat (limited to 'modules/base')
-rw-r--r-- | modules/base/files/pacman-cron | 3 | ||||
-rw-r--r-- | modules/base/manifests/operatingsystem.pp | 6 |
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": |