OP#407 initial commit with reset
This commit is contained in:
@@ -1,28 +0,0 @@
|
||||
## cd_nagios::server::access.pp
|
||||
# Module name: cd_nagios
|
||||
# Author: Arne Teuke (arne_teuke@ConfDroid.com)
|
||||
# @summary Define manages user- and password rules for accessing nagios.
|
||||
# @param [string] ng_htpasswd_user user name for the /etc/nagios/passwd file
|
||||
# @param [string] ng_htpasswd_password the encrypted password for the
|
||||
# /etc/nagios/passwd file.
|
||||
##############################################################################
|
||||
define cd_nagios::server::access (
|
||||
|
||||
Optional[String] $ng_htpasswd_user = undef,
|
||||
Optional[String] $ng_htpasswd_password = undef,
|
||||
|
||||
) {
|
||||
$ng_nagios_server = $cd_nagios::params::ng_nagios_server
|
||||
$ng_htpasswd_file = $cd_nagios::params::ng_htpasswd_file
|
||||
$ng_htpasswd_rule = $cd_nagios::params::ng_htpasswd_rule
|
||||
$ng_service = $cd_nagios::params::ng_service
|
||||
|
||||
if $::fqdn == $ng_nagios_server {
|
||||
# create password rules
|
||||
|
||||
concat::fragment { $name:
|
||||
target => $ng_htpasswd_file,
|
||||
content => template($ng_htpasswd_rule),
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user