diff --git a/manifests/server/access.pp b/manifests/server/access.pp index 7e01498..6637997 100644 --- a/manifests/server/access.pp +++ b/manifests/server/access.pp @@ -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), + } } }