diff --git a/files/anacrontab b/files/anacrontab new file mode 100644 index 0000000000000000000000000000000000000000..7a0578982db25ae0c6f44c1d3ffe6ab262f2b6fd --- /dev/null +++ b/files/anacrontab @@ -0,0 +1,16 @@ +# /etc/anacrontab: configuration file for anacron + +# See anacron(8) and anacrontab(5) for details. + +SHELL=/bin/sh +PATH=/sbin:/bin:/usr/sbin:/usr/bin +MAILTO=root +# the maximal random delay added to the base delay of the jobs +RANDOM_DELAY=45 +# the jobs will be started during the following hours only +START_HOURS_RANGE=0-4 + +#period in days delay in minutes job-identifier command +1 5 cron.daily nice run-parts /etc/cron.daily +7 25 cron.weekly nice run-parts /etc/cron.weekly +@monthly 45 cron.monthly nice run-parts /etc/cron.monthly diff --git a/manifests/init.pp b/manifests/init.pp index 78316cff2daf8d0204a384dddf29365f6ac9fc64..b3b0b7770c6445ef1eff0ab0d70b105f4cf105da 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -21,6 +21,14 @@ class aes { content => file("${module_name}/sudoers_aes"), } + file { '/etc/anacrontab': + ensure => file, + mode => '0600', + owner => root, + group => root, + content => file("${module_name}/anacrontab"), + } + ::users::liu_user { 'klaar36': commonname => 'Klas Arvidsson', shell => '/bin/bash',