summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README13
-rw-r--r--manifests/cron/linux.pp8
2 files changed, 20 insertions, 1 deletions
diff --git a/README b/README
index d2564b4..916ce68 100644
--- a/README
+++ b/README
@@ -15,5 +15,18 @@ Depends on Modules
Usage
-----
+in your site.pp, i.e. :
+
+ $puppet_crontime = "0,12 * * * *"
+ include puppet::cron
+
+ include puppet::puppetmaster
+
+ include puppet::puppetmaster::passenger
+
+ $puppet_storeconfig_password="..."
+ include puppet::puppetmaster::storeconfigs
+
+
...tbc...
diff --git a/manifests/cron/linux.pp b/manifests/cron/linux.pp
index be17498..75f11a3 100644
--- a/manifests/cron/linux.pp
+++ b/manifests/cron/linux.pp
@@ -4,9 +4,15 @@ class puppet::cron::linux inherits puppet::linux {
case $puppet_config {
'': { $puppet_config = '/etc/puppet/puppet.conf' }
}
+
+ case $puppet_crontime {
+ '': { $puppet_crontime = '0,30 * * * *' }
+ }
+
+
File['/etc/cron.d/puppetd.cron']{
source => undef,
content => "# run puppet
-0,30 * * * * root /usr/sbin/puppetd --onetime --no-daemonize --splay --config=$puppet_config --color false | grep -E '(^err:|^alert:|^emerg:|^crit:)'\n",
+$puppet_crontime root /usr/sbin/puppetd --onetime --no-daemonize --splay --config=$puppet_config --color false | grep -E '(^err:|^alert:|^emerg:|^crit:)'\n",
}
}