summaryrefslogtreecommitdiff
path: root/manifests/extra_host.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/extra_host.pp')
-rw-r--r--manifests/extra_host.pp27
1 files changed, 0 insertions, 27 deletions
diff --git a/manifests/extra_host.pp b/manifests/extra_host.pp
deleted file mode 100644
index 8f52de0..0000000
--- a/manifests/extra_host.pp
+++ /dev/null
@@ -1,27 +0,0 @@
-# this will define a host which isn't managed by puppet.
-# a ping serivce is automatically added
-define nagios::extra_host(
- $ensure = present,
- $ip = 'absent',
- $nagios_alias = 'absent',
- $use = 'generic-host',
- $parents = 'localhost'
-) {
- if $ensure == 'present' and ($ip == 'absent' or $nagios_alias == 'absent'){
- fail("You need to define \$ip and \$nagios_alias if extra_host should be present!")
- }
- nagios::host{$name:
- ensure => $ensure,
- ip => $ip,
- nagios_alias => $nagios_alias,
- use => $use,
- parents => $parents
- }
-
- nagios::service { "check_ping_${name}":
- ensure => $ensure,
- host_name => $name,
- check_command => 'check_ping!100.0,20%!500.0,60%',
- service_description => "check_ping_${nagios_alias}",
- }
-}