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