Puppet Class: nxlog::service
- Defined in:
- manifests/service.pp
Overview
Controls the NXLog service
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'manifests/service.pp', line 2
class nxlog::service (
$conf_dir = $::nxlog::conf_dir,
$conf_file = $::nxlog::conf_file,
$ensure_setting = $::nxlog::ensure_setting,
) {
case $::kernel {
'Linux', 'Windows' : {
unless ($ensure_setting =~ /absent/) {
service { 'nxlog':
ensure => 'running',
enable => true,
subscribe => Concat["${conf_dir}/${conf_file}"],
}
}
} # end Windows
default : {
# lint:ignore:80chars
fail("The NXLog module is not yet supported on this ${::operatingsystem}")
# lint:endignore
}
} # end $::operatingsystem case
}
|