added check for nagios_server to access

This commit is contained in:
Arne Teuke
2017-07-20 15:45:54 +01:00
parent 8a14684ca2
commit 4c9cff0e73

View File

@@ -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_file = $::cd_nagios::params::ng_htpasswd_file
$ng_htpasswd_rule = $::cd_nagios::params::ng_htpasswd_rule $ng_htpasswd_rule = $::cd_nagios::params::ng_htpasswd_rule
$ng_service = $::cd_nagios::params::ng_service $ng_service = $::cd_nagios::params::ng_service
if $::fqdn == $ng_nagios_server {
# create password rules # create password rules
concat::fragment { $name: concat::fragment { $name:
@@ -38,3 +42,4 @@ $ng_service = $::cd_nagios::params::ng_service
content => template($ng_htpasswd_rule), content => template($ng_htpasswd_rule),
} }
} }
}