Puppet Class: foreman::plugin::tasks
- Defined in:
-
manifests/plugin/tasks.pp
Summary
Install the foreman-tasks plugin
Overview
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
# File 'manifests/plugin/tasks.pp', line 9
class foreman::plugin::tasks(
Boolean $automatic_cleanup = false,
String $cron_line = '45 19 * * *',
) {
foreman::plugin { 'tasks':
package => $foreman::plugin_prefix.regsubst(/foreman[_-]/, 'foreman-tasks'),
}
$cron_state = $automatic_cleanup ? {
true => 'file',
default => 'absent',
}
file { '/etc/cron.d/foreman-tasks':
ensure => $cron_state,
owner => 'root',
group => 'root',
mode => '0644',
content => template('foreman/tasks.cron.erb'),
}
}
|