make contact changeable

This commit is contained in:
2026-03-10 12:21:04 +01:00
parent 4a9d594758
commit f4cb7198b3
2 changed files with 9 additions and 7 deletions

View File

@@ -17,7 +17,7 @@ class confdroid_apache::monitoring::target (
owner => 'nagios', owner => 'nagios',
group => 'nagios', group => 'nagios',
mode => '0640', mode => '0640',
contacts => 'ops', contacts => $ae_target_contacts,
} }
} }
} }

View File

@@ -40,14 +40,15 @@
# @param [String] ae_http_port the port to use for the http protocol # @param [String] ae_http_port the port to use for the http protocol
# @param [String] ae_https_port the port to use for the https protocol # @param [String] ae_https_port the port to use for the https protocol
# @param [String] ae_target_service which service to monitor with nagios # @param [String] ae_target_service which service to monitor with nagios
# @param [String] ae_target_contacts which contacts to notify for nagios alerts
# @param [Boolean] ae_manage_fw whether to manage firewall settings # @param [Boolean] ae_manage_fw whether to manage firewall settings
# @param [Array] reqpackages List of packages to install. # @param [Array] reqpackages List of packages to install.
########################################################################### ###########################################################################
class confdroid_apache::params ( class confdroid_apache::params (
# installation # installation
String $pkg_ensure = 'present', String $pkg_ensure = 'present',
Array $reqpackages = ['httpd','mod_ssl'], Array $reqpackages = ['httpd','mod_ssl'],
# configuration files # configuration files
Boolean $ae_manage_cfg = false, Boolean $ae_manage_cfg = false,
@@ -56,13 +57,14 @@ class confdroid_apache::params (
# nagios # nagios
Boolean $ae_incl_target = false, Boolean $ae_incl_target = false,
String $ae_target_service = '/etc/nagios/conf.d/httpd_service.cfg', String $ae_target_service = '/etc/nagios/conf.d/httpd_service.cfg',
String $ae_target_contacts = 'nagiosadmin',
# firewall # firewall
Boolean $ae_manage_fw = true, Boolean $ae_manage_fw = true,
String $ae_order_no = '50', String $ae_order_no = '50',
String $ae_http_port = '80', String $ae_http_port = '80',
String $ae_https_port = '443', String $ae_https_port = '443',
) { ) {
# facts # facts