Files
confdroid_nagios/manifests/server/files.pp

35 lines
1.1 KiB
Puppet

## confdroid_nagios::server::files.pp
# Module name: confdroid_nagios
# Author: 12ww1160 (12ww1160@confdroid.com)
# @summary Class manages configuration files for the confdroid_nagios module.
###############################################################################
class confdroid_nagios::server::files (
) inherits confdroid_nagios::params {
require confdroid_nagios::main::dirs
if $ng_nagios_server == $fqdn {
file { $ng_nagios_cfg_file:
ensure => file,
owner => 'nagios',
group => 'nagios',
mode => '0644',
content => template($ng_nagios_cfg_erb),
notify => Service[$ng_nagios_service],
}
# custom cfg files
## temp place holder, this will be done via defines
## and PuppetDB exports and imports in the future
#file { $ng_target_command:
# ensure => file,
# owner => 'nagios',
# group => 'nagios',
# mode => '0644',
# selrange => s0,
# selrole => object_r,
# seltype => nagios_etc_t,
# seluser => system_u,
# notify => Service[$ng_nagios_service],
#}
}
}