From aa8146913cde2b21170650e7369010b9f2a67fec Mon Sep 17 00:00:00 2001 From: 12ww1160 <12ww1160@confdroid.com> Date: Thu, 19 Feb 2026 16:22:34 +0100 Subject: [PATCH] OP#436 add main dir --- manifests/main/dirs.pp | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/manifests/main/dirs.pp b/manifests/main/dirs.pp index ceaef21..57c103d 100644 --- a/manifests/main/dirs.pp +++ b/manifests/main/dirs.pp @@ -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, # } # } + } }