diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2011-09-16 13:59:19 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2011-09-16 13:59:19 -0300 |
commit | 2f7a078e4c5da2e79a7b05e2a52fbb4de6bfc0b7 (patch) | |
tree | 59d41d243545014d01cf4845f7bed301ab1431f4 | |
parent | 83d69a67fe2b8ad200ea20866985179c57e1139c (diff) | |
download | puppet-nodo-2f7a078e4c5da2e79a7b05e2a52fbb4de6bfc0b7.tar.gz puppet-nodo-2f7a078e4c5da2e79a7b05e2a52fbb4de6bfc0b7.tar.bz2 |
Add third party hosted nodes into nagios
-rw-r--r-- | manifests/vserver.pp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/manifests/vserver.pp b/manifests/vserver.pp index 55ed957..02448da 100644 --- a/manifests/vserver.pp +++ b/manifests/vserver.pp @@ -24,12 +24,18 @@ class nodo::vserver inherits nodo { Monkeysphere_host <<| title == $hostname |>> } "third-party": { - # Apply munin configuration for this node for third-party - # hosted nodes. + # Apply munin and monkeysphere configuration for + # nodes hosted by third-parties. munin_node { "$hostname": } monkeysphere_host { "$hostname": port => $node_ssh_port, } + + # Nagios configuration + if $use_nagios != false { + include nagios::target::fqdn + nagios::service::ping { "$fqdn": } + } } } |