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,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_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
# create password rules
concat::fragment { $name: if $::fqdn == $ng_nagios_server {
target => $ng_htpasswd_file,
content => template($ng_htpasswd_rule), # create password rules
concat::fragment { $name:
target => $ng_htpasswd_file,
content => template($ng_htpasswd_rule),
}
} }
} }