Files
confdroid_nagios/manifests/server/files.pp

35 lines
1.1 KiB
ObjectPascal
Raw Normal View History

2026-02-14 21:26:43 +01:00
## confdroid_nagios::server::files.pp
# Module name: confdroid_nagios
# Author: 12ww1160 (12ww1160@confdroid.com)
# @summary Class manages configuration files for the confdroid_nagios module.
###############################################################################
2026-02-10 14:04:06 +01:00
class confdroid_nagios::server::files (
) inherits confdroid_nagios::params {
2026-02-13 14:57:03 +01:00
require confdroid_nagios::main::dirs
2026-02-21 13:44:41 +01:00
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],
}
2026-02-21 14:29:31 +01:00
# custom cfg files
2026-02-21 14:30:27 +01:00
## temp place holder, this will be done via defines
## and PuppetDB exports and imports in the future
2026-03-01 14:56:43 +01:00
#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],
#}
2026-02-21 13:44:41 +01:00
}
2026-02-10 14:04:06 +01:00
}