Puppet Class: cron
- Inherits:
- cron::params
- Defined in:
- manifests/init.pp
Overview
Install & manage cron
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 |
# File 'manifests/init.pp', line 18
class cron (
$package_name = $cron::params::package_name,
$package_ensure = 'latest',
$service_name = $cron::params::service_name,
$service_ensure = 'running',
$service_enable = true,
$crontab_file = $cron::params::crontab_file,
$crond_dir = $cron::params::crond_dir,
$crond_hourly = $cron::params::crond_hourly,
$crond_weekly = $cron::params::crond_weekly,
$crond_monthly = $cron::params::crond_monthly,
$user = $cron::params::user,
$group = $cron::params::group,
$purge = $cron::params::purge,
) inherits cron::params {
validate_re($service_ensure, '^(running|stopped)$')
validate_bool($service_enable)
anchor { 'cron_first': }
->
class { 'cron::install': } ->
class { 'cron::config': } ->
class { 'cron::service': } ->
anchor { 'cron_final': }
}
|