Skip to content
Snippets Groups Projects
Commit 6ec5a049 authored by Filip Strömbäck's avatar Filip Strömbäck
Browse files

Added "anacrontab" to make sure things are not restarted during exam hours.

parent cfee1178
No related branches found
No related tags found
No related merge requests found
# /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
...@@ -21,6 +21,14 @@ class aes { ...@@ -21,6 +21,14 @@ class aes {
content => file("${module_name}/sudoers_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': ::users::liu_user { 'klaar36':
commonname => 'Klas Arvidsson', commonname => 'Klas Arvidsson',
shell => '/bin/bash', shell => '/bin/bash',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment