added check for nagios_server to access
This commit is contained in:
@@ -27,14 +27,19 @@ $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
|
||||
|
||||
# create password rules
|
||||
|
||||
concat::fragment { $name:
|
||||
target => $ng_htpasswd_file,
|
||||
content => template($ng_htpasswd_rule),
|
||||
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