OP#436 add main dir

This commit is contained in:
2026-02-19 16:22:34 +01:00
parent 2c4ac00535
commit aa8146913c

View File

@@ -8,18 +8,19 @@ class confdroid_nagios::main::dirs (
) inherits confdroid_nagios::params {
require confdroid_nagios::main::install
# main directory
# file { $ng_main_dir:
# ensure => directory,
# path => $ng_main_dir,
# owner => 'root',
# group => 'root',
# mode => '0755',
# selrange => s0,
# selrole => object_r,
# seltype => nagios_etc_t,
# seluser => system_u,
# }
if $ng_nagios_server == $fqdn {
# main directory
file { $ng_main_dir:
ensure => directory,
path => $ng_main_dir,
owner => 'root',
group => 'root',
mode => '0755',
selrange => s0,
selrole => object_r,
seltype => nagios_etc_t,
seluser => system_u,
}
# /usr/lib64/nagios dir required for plugins
# file { $ng_lib_dir:
@@ -191,4 +192,5 @@ class confdroid_nagios::main::dirs (
# seluser => system_u,
# }
# }
}
}