Puppet Class: atop
- Defined in:
- manifests/init.pp
Overview
Main class that includes private classes (repo, install, config, service).
84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 |
# File 'manifests/init.pp', line 84
class atop (
Stdlib::Unixpath $defaults_file,
String $defaults_file_template,
Integer $loggenerations,
Integer $loginterval,
String $logopts,
Boolean $manage_epel,
Boolean $manage_package,
Boolean $manage_service_atop,
Boolean $manage_service_atopacctd,
String $package_ensure,
String $package_name,
String $process_accting_package_ensure,
Boolean $process_accting_package_manage,
String $process_accting_package_name,
String $process_accting_service_ensure,
Boolean $process_accting_service_enable,
Boolean $process_accting_service_manage,
String $process_accting_service_name,
Boolean $service_atop_enable,
Enum['running', 'stopped'] $service_atop_ensure,
String $service_atop_name,
Boolean $service_atopacctd_enable,
Enum['running', 'stopped'] $service_atopacctd_ensure,
String $service_atopacctd_name,
) {
case $::osfamily {
'RedHat': {
contain atop::repo
contain atop::install
contain atop::config
contain atop::service
Class['atop::repo']
->Class['atop::install']
->Class['atop::config']
~>Class['atop::service']
}
'Debian': {
contain atop::install
contain atop::config
contain atop::service
Class['atop::install']
->Class['atop::config']
~>Class['atop::service']
}
default: {
fail("${::osfamily} not supported")
}
}
}
|