Puppet Class: incron
- Defined in:
- manifests/init.pp
Overview
Main entry point for incron class which must be included in order to start managing all incron-related resources.
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 |
# File 'manifests/init.pp', line 21
class incron (
Enum[present, absent] $ensure = present,
# incron::install
String[1] $package_version = installed,
# incron::config
Array[String[1]] $allowed_users = [ ],
Array[String[1]] $denied_users = [ ],
# incron::service
Boolean $service_manage = true,
Enum[running, stopped] $service_ensure = running,
Boolean $service_enable = true,
# incron::purge
Boolean $purge_noop = false,
) {
if $ensure == present {
contain incron::install
contain incron::config
contain incron::service
contain incron::purge
Class['::incron::install'] -> Class['::incron::config'] -> Class['::incron::purge']
Class['::incron::install'] ~> Class['::incron::service']
Class['::incron::config'] ~> Class['::incron::service']
} else {
contain incron::remove
}
}
|