summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2008-02-05 08:30:55 -0600
committerLuke Kanies <luke@madstop.com>2008-02-05 08:30:55 -0600
commitb8036a9ed180dc1e143f66ac786759e7ae4b634b (patch)
tree1c551f4269cef53a35e440c3fa117dcd46541b4c /lib
parente96c5f84233b40915f7f7e993e1816f3de0d3ab2 (diff)
Updating the docs for the cron type
Diffstat (limited to 'lib')
-rwxr-xr-xlib/puppet/type/cron.rb25
1 files changed, 18 insertions, 7 deletions
diff --git a/lib/puppet/type/cron.rb b/lib/puppet/type/cron.rb
index 7882745dc..c46a7c83b 100755
--- a/lib/puppet/type/cron.rb
+++ b/lib/puppet/type/cron.rb
@@ -8,13 +8,6 @@ Puppet::Type.newtype(:cron) do
fields would result in the command being executed every
minute. While the name of the cron job is not part of the actual
job, it is used by Puppet to store and retrieve it.
-
- You may specify periodic fields as integers, using the standard cron
- range syntax (two numbers separated by a hyphen to indicate a range
- of values), or using the cron step syntax (for example, '*/2' to
- indicate command execution every other time unit). This type does
- not yet support the combiantion of these two syntaxes, or lists of
- ranges.
If you specify a cron job that matches an existing job in every way
except name, then the jobs will be considered equivalent and the
@@ -30,6 +23,24 @@ Puppet::Type.newtype(:cron) do
hour => 2,
minute => 0
}
+
+ Note that all cron values can be specified as an array of values::
+
+ cron { logrotate:
+ command => \"/usr/sbin/logrotate\",
+ user => root,
+ hour => [2, 4]
+ }
+
+ Or using ranges, or the step syntax ``*/2`` (although there's no guarantee that
+ your ``cron`` daemon supports it)::
+
+ cron { logrotate:
+ command => \"/usr/sbin/logrotate\",
+ user => root,
+ hour => ['2-4'],
+ minute => '*/10'
+ }
"
ensurable