diff options
author | mh <mh@immerda.ch> | 2008-04-25 20:47:10 +0000 |
---|---|---|
committer | mh <mh@immerda.ch> | 2008-04-25 20:47:10 +0000 |
commit | 310117d43855c0ee538bb6e9096a72ec35d14d37 (patch) | |
tree | 80700d5741c0f0a32af89526ac07d06fd5c1d213 | |
parent | 5b026f9dab31355d2d30899be468425bc0cfa61c (diff) |
fixed parrent issue
-rw-r--r-- | manifests/init.pp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/manifests/init.pp b/manifests/init.pp index d481726..67049e6 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -181,11 +181,7 @@ class nagios::target { } class nagios::target::host { - $real_nagios_parent = $nagios_parent ? { - '' => 'none', - default => $nagios_parent - } - nagios::host { $fqdn: parents => $real_nagios_parent } + nagios::host { $fqdn: parents => $nagios_parent } } # defines @@ -202,6 +198,10 @@ define nagios::host( '' => 'admins', default => $nagios_contact_groups_in } + $real_nagios_parents = $parents ? { + '' => 'localhost', + default => $parents + } @@nagios_host { $name: ensure => present, @@ -209,7 +209,7 @@ define nagios::host( alias => $nagios_alias, max_check_attempts => $max_check_attempts, notification_interval => $notification_interval, - parents => $parents, + parents => $real_nagios_parents, use => $use, } } |