OP#436 add user access

This commit is contained in:
2026-02-14 21:05:02 +01:00
parent c62ff78711
commit 0273e9553a
5 changed files with 61 additions and 8 deletions

View File

@@ -0,0 +1,25 @@
## confdroid_nagios::server::access_rules.pp
# Module name: confdroid_nagios
# Author: 12ww1160 (12ww1160@confdroid.com)
# @summary Class manages presence of /etc/nagios/passwd file.
#############################################################################
class confdroid_nagios::server::access_rules (
) inherits confdroid_nagios::params {
if $fqdn == $ng_nagios_server {
# manage /etc/nagios/passwd file
concat { $ng_htpasswd_file:
ensure => present,
path => $ng_htpasswd_file,
owner => 'root',
group => 'apache',
mode => '0640',
selrange => s0,
selrole => object_r,
seltype => nagios_etc_t,
seluser => system_u,
notify => Service[$ng_nagios_service],
}
}
}