diff options
author | mh <mh@immerda.ch> | 2010-06-28 19:28:27 +0200 |
---|---|---|
committer | mh <mh@immerda.ch> | 2010-06-28 19:28:27 +0200 |
commit | c25c57f3945a7edf66bedaa34fa4af62a803d174 (patch) | |
tree | 863c61e2de0c258c859527e14e86b47ffd8f0bb1 /manifests/extra_host.pp | |
parent | 77f601607093b7fb22f3498574d0dedd2cbe01d9 (diff) | |
parent | 5d5ec8c28d0fe39359af8db159b14faeae397e1f (diff) |
merge with lavamind
Diffstat (limited to 'manifests/extra_host.pp')
-rw-r--r-- | manifests/extra_host.pp | 27 |
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}", - } -} |