blob: b0018108eaeb2a1d3d6738a6146727765fd8ca2c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
define nagios::plugin(
$source = 'absent',
$ensure = present
){
@@file{$name:
path => $hardwaremodel ? {
'x86_64' => "/usr/lib64/nagios/plugins/$name",
default => "/usr/lib/nagios/plugins/$name",
},
ensure => $ensure,
source => $source ? {
'absent' => "puppet://$server/modules/nagios/plugins/$name",
default => "puppet://$server/modules/$source"
},
tag => 'nagios_plugin',
require => Package['nagios-plugins'],
owner => root, group => 0, mode => 0755;
}
}
|