aboutsummaryrefslogtreecommitdiff
path: root/manifests/host.pp
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-01-20 16:35:53 -0200
committerSilvio Rhatto <rhatto@riseup.net>2013-01-20 16:35:53 -0200
commit345d45b406010c59ec8cfae99f177fbe9df10a78 (patch)
tree365982e13c1a7de45ae015f4d18b112189b39ea2 /manifests/host.pp
parenteed6dead26492eaae8b13f66593406cd5a168285 (diff)
downloadpuppet-nodo-345d45b406010c59ec8cfae99f177fbe9df10a78.tar.gz
puppet-nodo-345d45b406010c59ec8cfae99f177fbe9df10a78.tar.bz2
Adding monitor class to wrap around nagios
Diffstat (limited to 'manifests/host.pp')
-rw-r--r--manifests/host.pp12
1 files changed, 4 insertions, 8 deletions
diff --git a/manifests/host.pp b/manifests/host.pp
index fe1ca61..cae28ce 100644
--- a/manifests/host.pp
+++ b/manifests/host.pp
@@ -17,14 +17,10 @@ class nodo::host inherits nodo {
$vserver_vdirbase = "/var/vservers"
include vserver::host
- if $use_nagios != false {
- if $use_nagios_fqdn == true {
- include nagios::target::fqdn
- }
- else {
- include nagios::target
- }
- nagios::service::ping { "$fqdn": }
+ # Monitoring
+ class { 'monitor':
+ type => 'host',
+ use_nagios => extlookup('host_use_nagios', 'true'),
}
# Time configuration