OP#491 split config files for remoteip
This commit is contained in:
@@ -735,6 +735,7 @@ class confdroid_nagios::params (
|
||||
$ng_cgi_cfg_file = "${ng_main_dir}/cgi.cfg"
|
||||
$ng_cgi_cfg_erb = 'confdroid_nagios/nagios/cgi_cfg.erb'
|
||||
$ng_remoteip_file = '/etc/httpd/conf.d/loadbalancer-remoteip.conf'
|
||||
$ng_loadmodule_file = '/etc/httpd/conf.modules.d/10-remoteip.conf'
|
||||
|
||||
# nagios
|
||||
$ng_target_templates = "${ng_conf_d_dir}/nagios_templates.cfg"
|
||||
|
||||
@@ -59,5 +59,18 @@ class confdroid_nagios::server::files (
|
||||
notify => Service['httpd'],
|
||||
}
|
||||
}
|
||||
|
||||
file { $ng_loadmodule_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/loadmodule.conf.erb'),
|
||||
notify => Service['httpd'],
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
6
templates/loadbalancer/loadmodule.conf.erb
Normal file
6
templates/loadbalancer/loadmodule.conf.erb
Normal file
@@ -0,0 +1,6 @@
|
||||
###############################################################################
|
||||
########## parameterized loadmodule config created by Puppet ##########
|
||||
########## manual changes will be overwritten !!! ##########
|
||||
###############################################################################
|
||||
|
||||
LoadModule remoteip_module modules/mod_remoteip.so
|
||||
@@ -3,7 +3,5 @@
|
||||
########## manual changes will be overwritten !!! ##########
|
||||
###############################################################################
|
||||
|
||||
LoadModule remoteip_module modules/mod_remoteip.so
|
||||
|
||||
RemoteIPHeader X-Forwarded-For
|
||||
RemoteIPTrustedProxy <%= @ng_trusted_proxy %>
|
||||
RemoteIPTrustedProxy <%= @ng_trusted_proxy %>
|
||||
|
||||
Reference in New Issue
Block a user