puppet_run_scheduler
: Configure and distribute Puppet run frequency using Cron (Posix) and Scheduled Tasks (Windows).puppet_run_scheduler::posix
: Private implementation class for posix OSespuppet_run_scheduler::windows
: Private implementation class for Windows OS
Puppet_run_scheduler::Run_interval
: A list of permissible run_interval settings
puppet_run_scheduler
include puppet_run_scheduler
class { 'puppet_run_scheduler':
run_interval => '4h',
splaylimit => '1h',
start_time => '16:00',
}
The following parameters are available in the puppet_run_scheduler
class:
Data type: Enum['present', 'absent']
Whethor or not to schedule the running of puppet. "absent" only exists to provide clean-up or rollback options in case the class is applied somewhere it shouldn't have been.
Default value: 'present'
Data type: Puppet_run_scheduler::Run_interval
What frequency Puppet should run at. This value cannot be any period; there is an enumerated list of acceptable values. Valid values: 15m, 30m, 1h, 2h, 3h, 4h, 6h, 8h, 12h, 24h
Default value: '30m'
Data type: Pattern[/[0-2]\d:\d\d/]
A specific time in the form of HH:MM that a Puppet run should start (
subject to the splaylimit
parameter). This is useful for organizations
with long run intervals and specific maintenance windows. For example,
given a run_interval
of 4h and a splaylimit
of 30m, administrators can
use start_time
to ensure that Puppet runs occur during the first 30
minutes of a known maintenance window.
Default value: '00:00'
Data type: Puppet_run_scheduler::Run_interval
Same format as run_interval
. How long a period of time to spread runs out
over. By default runs will be fully spread out over the entire
run_interval
, but it is possible to have a shorter splaylimit
.
Default value: $run_interval
Data type: Stdlib::Absolutepath
The fully qualified path to the Puppet executable to run on Posix systems. All of the Puppet command-line arguments appropriate for perfoming a one-time run will be passed to this executable.
Default value: '/opt/puppetlabs/bin/puppet'
Data type: Stdlib::Absolutepath
The fully qualified path to the Puppet executable to run on Windows systems. All of the Puppet command-line arguments appropriate for perfoming a one-time run will be passed to this executable.
Default value: 'C:\\Program Files\\Puppet Labs\\Puppet\\bin\\puppet.bat'
puppet_run_scheduler::posix
The following parameters are available in the puppet_run_scheduler::posix
class:
Data type: Stdlib::Absolutepath
The fully qualified path to the Puppet executable to run on Posix systems. All of the Puppet command-line arguments appropriate for perfoming a one-time run will be passed to this executable.
Default value: $puppet_run_scheduler::posix_puppet_executable
puppet_run_scheduler::windows
The following parameters are available in the puppet_run_scheduler::windows
class:
Data type: String[1]
The user to run the Puppet run scheduled task as.
Default value: 'system'
Data type: Stdlib::Absolutepath
The fully qualified path to the Puppet executable to run on Windows systems. All of the Puppet command-line arguments appropriate for perfoming a one-time run will be passed to this executable.
Default value: $puppet_run_scheduler::windows_puppet_executable
Data type: Boolean
Whether or not to manage acl entries on Puppet lastrun files, to work around PUP-9238.
Default value: true
Data type: Optional[Variant[String[1], Sensitive[String[1]]]]
The password for the user to run the Puppet run scheduled task as. Only
used if specifying a user other than "system" via scheduled_task_user
.
Default value: undef
Type: Puppet Language
The puppet_run_scheduler::minutes function.
The puppet_run_scheduler::minutes function.
Returns: Any
Data type: Puppet_run_scheduler::Run_interval
A list of permissible run_interval settings
Alias of
Enum['15m', '30m', '1h', '2h', '3h', '4h', '6h', '8h', '12h', '24h']