Skip to content
This repository was archived by the owner on Mar 28, 2019. It is now read-only.

Commit b0b10d8

Browse files
author
Zach Leslie
committed
Move cron minute to class param
To allow for modification of the puppet agent run frequency, this work moves the cron 'minute' up to a class param.
1 parent 6b789ee commit b0b10d8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

manifests/agent/cron.pp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
class puppet::agent::cron (
33
$enable = true,
44
$run_noop = false,
5+
$minute = fqdn_rand(60),
56
) {
67
include puppet::params
78

@@ -20,6 +21,6 @@
2021
cron { 'puppet agent':
2122
ensure => $ensure,
2223
command => $cmd,
23-
minute => fqdn_rand(60),
24+
minute => $minute,
2425
}
2526
}

0 commit comments

Comments
 (0)