summaryrefslogtreecommitdiff
path: root/manifests/plugin.pp
blob: 4789345bf4141c3d96d29171a441076b029acab6 (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/modules/nagios/plugins/$name",
    require => Package['nagios-plugins'],
    owner => root, group => 0, mode => 0755;
  }
}