OP#491 add remoteIP control

This commit is contained in:
2026-03-12 15:29:14 +01:00
parent c05ca6e823
commit d021151c47
3 changed files with 32 additions and 1 deletions

View File

@@ -44,5 +44,20 @@ class confdroid_nagios::server::files (
seltype => nagios_var_run_t,
seluser => system_u,
}
if $ng_use_lb == true {
file { $ng_remoteip_file:
ensure => file,
owner => 'root',
group => 'root',
mode => '0644',
selrange => s0,
selrole => object_r,
seltype => httpd_conf_t,
seluser => system_u,
content => template('confdroid_nagios/loadbalancer/remoteip.conf.erb'),
notify => Service['httpd'],
}
}
}
}