diff options
author | Linus Nordberg <linus@nordu.net> | 2015-06-05 17:12:48 +0200 |
---|---|---|
committer | Linus Nordberg <linus@nordu.net> | 2015-06-05 17:12:48 +0200 |
commit | ca0e2d80dfd29938290cb46cee1264ea4dc76cc8 (patch) | |
tree | ee858ec46d76a85c55a168ca36bed0739b8fbd31 /global/overlay/etc | |
parent | 0541b3d4e78e50274a0b1ed9f45bdd5285fcc550 (diff) | |
parent | 92237a3d062dba6f9aa36bdb40e439f64dcb55a1 (diff) |
Merge branch 'master' of ssh://git.nordu.net/ct-opsct-ops-2015-06-05-v06
Diffstat (limited to 'global/overlay/etc')
-rw-r--r-- | global/overlay/etc/cron.d/cosmos | 2 | ||||
-rwxr-xr-x | global/overlay/etc/cron.daily/scriptherder_cleanup | 10 | ||||
-rw-r--r-- | global/overlay/etc/puppet/manifests/cosmos-site.pp | 2 |
3 files changed, 12 insertions, 2 deletions
diff --git a/global/overlay/etc/cron.d/cosmos b/global/overlay/etc/cron.d/cosmos index 4eab8de..2aadd2e 100644 --- a/global/overlay/etc/cron.d/cosmos +++ b/global/overlay/etc/cron.d/cosmos @@ -1,4 +1,4 @@ SHELL=/bin/sh PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin -*/15 * * * * root test -f /etc/no-automatic-cosmos || /usr/local/bin/run-cosmos +*/15 * * * * root test -f /etc/no-automatic-cosmos || scriptherder --mode wrap --syslog --name cosmos -- /usr/local/bin/run-cosmos diff --git a/global/overlay/etc/cron.daily/scriptherder_cleanup b/global/overlay/etc/cron.daily/scriptherder_cleanup new file mode 100755 index 0000000..08ec7f5 --- /dev/null +++ b/global/overlay/etc/cron.daily/scriptherder_cleanup @@ -0,0 +1,10 @@ +#!/bin/sh +# +# Remove scriptherder data older than 7 days. +# + +DIR="/var/cache/scriptherder/" + +test -d ${DIR} || exit 0 + +find ${DIR} -type f -mtime +7 -print0 | xargs -0 rm -f diff --git a/global/overlay/etc/puppet/manifests/cosmos-site.pp b/global/overlay/etc/puppet/manifests/cosmos-site.pp index 54841f5..52b23ee 100644 --- a/global/overlay/etc/puppet/manifests/cosmos-site.pp +++ b/global/overlay/etc/puppet/manifests/cosmos-site.pp @@ -21,7 +21,7 @@ node default { class { 'sshserver': } class { 'mailclient': - domain => 'smtp.nordu.net' + domain => 'nordu.net' } class { 'sshkeys': } |