diff options
Diffstat (limited to 'manifests/service')
-rw-r--r-- | manifests/service/dns_host.pp | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/manifests/service/dns_host.pp b/manifests/service/dns_host.pp index 1e3c6ec..d88f373 100644 --- a/manifests/service/dns_host.pp +++ b/manifests/service/dns_host.pp @@ -1,3 +1,5 @@ +# add a special host and monitor +# it's dns service define nagios::service::dns_host( $check_domain, $host_alias, @@ -6,15 +8,15 @@ define nagios::service::dns_host( ){ @@nagios_host{$name: address => $ip, - alias => $host_alias, - use => 'generic-host', + alias => $host_alias, + use => 'generic-host', parents => $parent, } nagios::service::dns{$name: - $host_name => $name, - $comment => 'public_ns', - $check_domain => $check_domain, - $ip => $ip, + host_name => $name, + comment => 'public_ns', + check_domain => $check_domain, + ip => $ip, } } |