diff options
author | mh <mh@immerda.ch> | 2010-08-11 15:57:58 +0200 |
---|---|---|
committer | mh <mh@immerda.ch> | 2010-08-11 15:57:58 +0200 |
commit | 01bb8dfee9c3981994d1697fc96470798445a050 (patch) | |
tree | dcd4266d6eeb8dc48ae1b69aacea53594e6560a8 /manifests/plugin.pp | |
parent | 33b091b896fbb0b54ee9968c452ef2a8867893d8 (diff) | |
parent | a5d8b5b8b1f4d5afcb549e28bf1eef12169b81c7 (diff) |
Merge branch 'master' of git.puppet.immerda.ch:module-nagios
Diffstat (limited to 'manifests/plugin.pp')
-rw-r--r-- | manifests/plugin.pp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/manifests/plugin.pp b/manifests/plugin.pp index 4789345..abaa6e5 100644 --- a/manifests/plugin.pp +++ b/manifests/plugin.pp @@ -1,13 +1,18 @@ define nagios::plugin( + $source = 'absent', $ensure = present ){ - file{$name: + @@file{$name: path => $hardwaremodel ? { 'x86_64' => "/usr/lib64/nagios/plugins/$name", default => "/usr/lib/nagios/plugins/$name", }, ensure => $ensure, - source => "puppet://$server/modules/nagios/plugins/$name", + source => $source ? { + 'absent' => "puppet:///modules/nagios/plugins/$name", + default => "puppet:///modules/$source" + }, + tag => 'nagios_plugin', require => Package['nagios-plugins'], owner => root, group => 0, mode => 0755; } |