diff options
author | Jerome Charaoui <jcharaoui@cmaisonneuve.qc.ca> | 2009-12-02 15:31:08 -0500 |
---|---|---|
committer | Jerome Charaoui <jcharaoui@cmaisonneuve.qc.ca> | 2009-12-02 15:31:08 -0500 |
commit | 0bcac1357115fe9b03ec884632d46c93efb317d9 (patch) | |
tree | c87474ff831938e7f191d40f665184cfef912e12 /manifests/extra_host.pp | |
parent | 3c15393af5c8fb0c7d66ece27a70b86709f1af82 (diff) |
remove host wrapper, instead define using native type in target, and create a target::nat subclass
Diffstat (limited to 'manifests/extra_host.pp')
-rw-r--r-- | manifests/extra_host.pp | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/manifests/extra_host.pp b/manifests/extra_host.pp deleted file mode 100644 index 3150612..0000000 --- a/manifests/extra_host.pp +++ /dev/null @@ -1,24 +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, - $nagios_alias, - $use = 'generic-host', - $parents = 'localhost' -) { - 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}", - } -} |