OP#436 done cgi.cfg - CMT section to be outsourced into define

This commit is contained in:
2026-03-08 14:32:09 +01:00
parent 45d9ff2b18
commit 75acfb8dc2
2 changed files with 213 additions and 213 deletions

View File

@@ -375,7 +375,7 @@
# @param [String] ng_wrl_layout The layout for the WRL in Nagios. Default is '4'. # @param [String] ng_wrl_layout The layout for the WRL in Nagios. Default is '4'.
# @param [Boolean] ng_incl_own_wrl Whether to include own WRL in Nagios. # @param [Boolean] ng_incl_own_wrl Whether to include own WRL in Nagios.
# Default is false. # Default is false.
# @param [String] ng_statuswrl_include The WRL file to include in Nagios. # @param [String] ng_statuswrl_incl The WRL file to include in Nagios.
# Default is empty. # Default is empty.
# @param [String] ng_ping_syntax The syntax for the check_ping command in Nagios. # @param [String] ng_ping_syntax The syntax for the check_ping command in Nagios.
# Default is '/bin/ping -n -U -c 5 $HOSTADDRESS$'. # Default is '/bin/ping -n -U -c 5 $HOSTADDRESS$'.
@@ -584,15 +584,15 @@ class confdroid_nagios::params (
String $ng_use_ssl_auth = '0', String $ng_use_ssl_auth = '0',
Boolean $ng_enable_def_user = false, Boolean $ng_enable_def_user = false,
String $ng_def_user_name = 'ChangeME', String $ng_def_user_name = 'ChangeME',
String $ng_sysinfo_auth = '', Optional[String] $ng_sysinfo_auth = undef,
String $ng_confinfo_auth = '', Optional[String] $ng_confinfo_auth = undef,
String $ng_command_auth = '', Optional[String] $ng_command_auth = undef,
String $ng_hostview_auth = '', Optional[String] $ng_hostview_auth = undef,
String $ng_serviceview_auth = '', Optional[String] $ng_serviceview_auth = undef,
String $ng_host_cmd_auth = '', Optional[String] $ng_host_cmd_auth = undef,
String $ng_svc_cmd_auth = '', Optional[String] $ng_svc_cmd_auth = undef,
String $ng_readonly_auth = '' , Optional[String] $ng_readonly_auth = undef,
String $ng_statusmap_img = '', Optional[String] $ng_statusmap_img = undef,
Boolean $ng_use_colormap = false, Boolean $ng_use_colormap = false,
String $ng_colormap_red = '255', String $ng_colormap_red = '255',
String $ng_colormap_green = '255', String $ng_colormap_green = '255',
@@ -600,7 +600,7 @@ class confdroid_nagios::params (
String $ng_statusmap_layout = '6', String $ng_statusmap_layout = '6',
String $ng_wrl_layout = '4', String $ng_wrl_layout = '4',
Boolean $ng_incl_own_wrl = false, Boolean $ng_incl_own_wrl = false,
String $ng_statuswrl_include = '', Optional[String] $ng_statuswrl_incl = undef,
String $ng_ping_syntax = '/bin/ping -n -U -c 5 $HOSTADDRESS$', String $ng_ping_syntax = '/bin/ping -n -U -c 5 $HOSTADDRESS$',
String $ng_refresh_rate = '90', String $ng_refresh_rate = '90',
String $ng_enable_page_tour = '1', String $ng_enable_page_tour = '1',

View File

@@ -50,7 +50,7 @@ default_statusmap_layout=<%= @ng_statusmap_layout%>
default_statuswrl_layout=<%= @ng_wrl_layout %> default_statuswrl_layout=<%= @ng_wrl_layout %>
<% if @ng_incl_own_wrl == true -%> <% if @ng_incl_own_wrl == true -%>
statuswrl_include=<%= @ng_statuswrl_include %> statuswrl_include=<%= @ng_statuswrl_incl %>
<% else -%> <% else -%>
#statuswrl_include=myworld.wrl #statuswrl_include=myworld.wrl
<% end -%> <% end -%>