added check for nagios_server to access
This commit is contained in:
@@ -27,10 +27,14 @@ $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:
|
||||
@@ -38,3 +42,4 @@ $ng_service = $::cd_nagios::params::ng_service
|
||||
content => template($ng_htpasswd_rule),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user