summaryrefslogtreecommitdiff
path: root/manifests/plugin/deploy.pp
diff options
context:
space:
mode:
authorMicah Anderson <micah@riseup.net>2012-09-25 16:27:37 -0400
committerMicah Anderson <micah@riseup.net>2012-09-25 16:27:37 -0400
commit16e77b3a8b257dafcf059bfcebc095178995fda5 (patch)
tree2673fa226de03b0be14ceef4df64140372643ea6 /manifests/plugin/deploy.pp
parentad1f714b06faf229ec1b0f310e81c425a6906581 (diff)
parenteafb4c73ee82915bf83eac01bb26265c531a68e2 (diff)
Merge branch 'merge_immerda'
Conflicts: manifests/apache.pp this conflict was just a indentation difference.
Diffstat (limited to 'manifests/plugin/deploy.pp')
-rw-r--r--manifests/plugin/deploy.pp12
1 files changed, 6 insertions, 6 deletions
diff --git a/manifests/plugin/deploy.pp b/manifests/plugin/deploy.pp
index 75f87d7..3f2a1a4 100644
--- a/manifests/plugin/deploy.pp
+++ b/manifests/plugin/deploy.pp
@@ -5,26 +5,26 @@ define nagios::plugin::deploy($source = '', $ensure = 'present', $config = '', $
default => $ensure
}
$real_source = $source ? {
- '' => "nagios/plugins/$plugin_src",
+ '' => "nagios/plugins/${plugin_src}",
default => $source
}
if !defined(Package[$require_package]) {
- @@package { $require_package:
+ package { $require_package:
ensure => installed,
tag => "nagios::plugin::deploy::package";
}
}
-
+
include nagios::plugin::scriptpaths
- @@file { "nagios_plugin_${name}":
+ file { "nagios_plugin_${name}":
path => "$nagios::plugin::scriptpaths::script_path/${name}",
- source => "puppet://$server/modules/$real_source",
+ source => "puppet:///modules/${real_source}",
mode => 0755, owner => root, group => 0,
require => Package[$require_package],
tag => "nagios::plugin::deploy::file";
}
# register the plugin
- @@nagios::plugin{$name: ensure => $ensure, require => Package['nagios-plugins'] }
+ nagios::plugin{$name: ensure => $ensure, require => Package['nagios-plugins'] }
}