summaryrefslogtreecommitdiff
path: root/manifests/plugin.pp
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2012-06-08 13:04:33 -0300
committermh <mh@immerda.ch>2012-06-08 13:04:33 -0300
commit106515b61b731489cce2d8b74bea13b26d4a65f6 (patch)
treec2e221f0652a5ab87428a540e2556439c5d4a999 /manifests/plugin.pp
parent315a1942cacc58aecfe275599e54fa9da8252518 (diff)
refactor things for >2.7
Diffstat (limited to 'manifests/plugin.pp')
-rw-r--r--manifests/plugin.pp10
1 files changed, 5 insertions, 5 deletions
diff --git a/manifests/plugin.pp b/manifests/plugin.pp
index c2e7676..d32606b 100644
--- a/manifests/plugin.pp
+++ b/manifests/plugin.pp
@@ -3,14 +3,14 @@ define nagios::plugin(
$ensure = present
){
file{$name:
- path => $hardwaremodel ? {
- 'x86_64' => "/usr/lib64/nagios/plugins/$name",
- default => "/usr/lib/nagios/plugins/$name",
+ path => $::hardwaremodel ? {
+ 'x86_64' => "/usr/lib64/nagios/plugins/${name}",
+ default => "/usr/lib/nagios/plugins/${name}",
},
ensure => $ensure,
source => $source ? {
- 'absent' => "puppet:///modules/nagios/plugins/$name",
- default => "puppet:///modules/$source"
+ 'absent' => "puppet:///modules/nagios/plugins/${name}",
+ default => "puppet:///modules/${source}"
},
tag => 'nagios_plugin',
require => Package['nagios-plugins'],