summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2023-03-27 06:17:01 -0400
committerJesse Luehrs <doy@tozt.net>2023-03-27 06:17:01 -0400
commit0ef7daf1f858090ba6599cb92071a2dfcc25644f (patch)
tree01dfca011de30b1cd495757fe0129b5406697af8
parentd09fd38f86308f205f8ed73f34b382ded476ed95 (diff)
downloadpuppet-tozt-0ef7daf1f858090ba6599cb92071a2dfcc25644f.tar.gz
puppet-tozt-0ef7daf1f858090ba6599cb92071a2dfcc25644f.zip
make individual cronjobs depend on godwrap
-rw-r--r--modules/cron/manifests/init.pp2
-rw-r--r--modules/cron/manifests/job.pp1
2 files changed, 1 insertions, 2 deletions
diff --git a/modules/cron/manifests/init.pp b/modules/cron/manifests/init.pp
index d715a86..b1fd335 100644
--- a/modules/cron/manifests/init.pp
+++ b/modules/cron/manifests/init.pp
@@ -1,6 +1,4 @@
class cron {
- include godwrap
-
$from = "${facts['networking']['hostname']}-cron"
$password = secret::value('cron_email_password')
diff --git a/modules/cron/manifests/job.pp b/modules/cron/manifests/job.pp
index 41fc7f6..749402b 100644
--- a/modules/cron/manifests/job.pp
+++ b/modules/cron/manifests/job.pp
@@ -1,5 +1,6 @@
define cron::job($frequency, $source = undef, $content = undef, $ensure = undef) {
require cron
+ require godwrap
file {
"/etc/cronjobs/${name}":