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