OP#436 add user access

This commit is contained in:
2026-02-14 21:21:43 +01:00
parent 0273e9553a
commit 5f5e2e7deb
4 changed files with 20 additions and 1 deletions

View File

@@ -28,6 +28,10 @@
# to use HTTPS. Default is false. We recommend using a reverse proxy
# with SSL termination in front of the Nagios web interface, so this is
# disabled by default.
# @param [String] ng_main_user The username for the Nagios web interface.
# Default is 'nagios'.
# @param [String] ng_main_password The encrypted password for the Nagios web
# interface. Default is 'nagios'.
###############################################################################
class confdroid_nagios::params (
@@ -37,6 +41,8 @@ class confdroid_nagios::params (
Array $ng_reqpackages_client = ['net-snmp-utils','nagios-plugins','nagios-plugins-all','nagios-plugins-nrpe','nagios-common'],
String $ng_pkg_ensure = 'present',
Boolean $ng_include_nrpe = true,
String $ng_main_user = 'nagios',
String $ng_main_password = 'nagios',
# httpd
Boolean $ng_use_https = false,

View File

@@ -21,5 +21,12 @@ class confdroid_nagios::server::access_rules (
seluser => system_u,
notify => Service[$ng_nagios_service],
}
}
# manage file header
concat::fragment { 'fle_header':
target => $ng_htpasswd_file,
content => template($ng_htpasswd_head),
order => '000',
}
}
}