Puppet Class: cron::params

Inherited by:
cron
Defined in:
manifests/params.pp

Overview

Private params class



2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# File 'manifests/params.pp', line 2

class cron::params {

  case $::operatingsystem {
    'RedHat', 'CentOS': {
      $package_name   = 'cronie'
      $service_name   = 'crond'
      $crontab_file   = '/etc/crontab'
      $crond_dir      = '/etc/cron.d'
      $crond_hourly   = '/etc/cron.hourly'
      $crond_daily    = '/etc/cron.daily'
      $crond_weekly   = '/etc/cron.weekly'
      $crond_monthly  = '/etc/cron.monthly'
      $user           = 'root'
      $group          = 'root'
      $purge          = false
    }
    'Debian', 'Ubuntu': {
      $package_name   = 'cron'
      $service_name   = 'cron'
      $crontab_file   = '/etc/crontab'
      $crond_dir      = '/etc/cron.d'
      $crond_hourly   = '/etc/cron.hourly'
      $crond_daily    = '/etc/cron.daily'
      $crond_weekly   = '/etc/cron.weekly'
      $crond_monthly  = '/etc/cron.monthly'
      $user           = 'root'
      $group          = 'root'
      $purge          = false
    }
    default: { fail('Unsupported OS') }
  }

}