diff options
author | Jesse Luehrs <doy@tozt.net> | 2020-07-11 01:55:11 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2020-07-11 01:55:11 -0400 |
commit | 064fe099898269ee232edf7bb9803c86389b8980 (patch) | |
tree | 03c4f6bc0cd11bcf1d1f53486c4a126fa81a995c /modules/base | |
parent | 46259587634a5c95136594e5066372541259e56b (diff) | |
download | puppet-tozt-064fe099898269ee232edf7bb9803c86389b8980.tar.gz puppet-tozt-064fe099898269ee232edf7bb9803c86389b8980.zip |
factor cron jobs out into a helper module
Diffstat (limited to 'modules/base')
-rw-r--r-- | modules/base/manifests/operatingsystem.pp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/modules/base/manifests/operatingsystem.pp b/modules/base/manifests/operatingsystem.pp index 4a65015..4229fcc 100644 --- a/modules/base/manifests/operatingsystem.pp +++ b/modules/base/manifests/operatingsystem.pp @@ -1,6 +1,4 @@ class base::operatingsystem { - include cron - file { "/etc/locale.gen": content => "en_US.UTF-8 UTF-8\n", @@ -18,10 +16,11 @@ 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']; + } + + cron::job { "pacman": + frequency => "hourly", + source => 'puppet:///modules/base/pacman-cron'; } exec { "regen locale data": |