diff options
author | Jesse Luehrs <doy@tozt.net> | 2020-07-11 02:27:24 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2020-07-11 02:45:15 -0400 |
commit | d79af16f91204018bfdfd4b859a2156d9c21b87f (patch) | |
tree | 30922027d9e371464a15783da0f37a47d7b6345f /modules/cron | |
parent | b1075daf36e8bd4cd7c04d8a0367f97a76fa66e0 (diff) | |
download | puppet-tozt-d79af16f91204018bfdfd4b859a2156d9c21b87f.tar.gz puppet-tozt-d79af16f91204018bfdfd4b859a2156d9c21b87f.zip |
make the cron wrapper use godwrap
Diffstat (limited to 'modules/cron')
-rw-r--r-- | modules/cron/manifests/init.pp | 2 | ||||
-rw-r--r-- | modules/cron/templates/job | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/modules/cron/manifests/init.pp b/modules/cron/manifests/init.pp index b1fd335..d715a86 100644 --- a/modules/cron/manifests/init.pp +++ b/modules/cron/manifests/init.pp @@ -1,4 +1,6 @@ class cron { + include godwrap + $from = "${facts['networking']['hostname']}-cron" $password = secret::value('cron_email_password') diff --git a/modules/cron/templates/job b/modules/cron/templates/job index cb5eb18..105de7e 100644 --- a/modules/cron/templates/job +++ b/modules/cron/templates/job @@ -1,3 +1,3 @@ #!/bin/sh -exec /etc/cronjobs/<%= @name %> +exec godwrap run --name <%= @name %> --status /media/persistent/godwrap --mode 0644 -- /etc/cronjobs/<%= @name %> |