summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authormh <mh@d66ca3ae-40d7-4aa7-90d4-87d79ca94279>2008-04-18 12:04:59 +0000
committermh <mh@d66ca3ae-40d7-4aa7-90d4-87d79ca94279>2008-04-18 12:04:59 +0000
commit4b66892e98b993264e396b95a641c744a95c83c3 (patch)
treec5d220cd4c1e945c92b5a60b1efec49b53dd1d06 /manifests
parentf64b68757b2a26e77628060fe255cf1de3b2c0cb (diff)
fixed params and made it more all the same way
git-svn-id: https://svn/ipuppet/trunk/modules/munin@1231 d66ca3ae-40d7-4aa7-90d4-87d79ca94279
Diffstat (limited to 'manifests')
-rw-r--r--manifests/plugin.pp6
1 files changed, 2 insertions, 4 deletions
diff --git a/manifests/plugin.pp b/manifests/plugin.pp
index 782f9f2..97bcbf3 100644
--- a/manifests/plugin.pp
+++ b/manifests/plugin.pp
@@ -92,7 +92,7 @@ define munin::remoteplugin($ensure = "present", $source, $config = '') {
}
}
}
-define munin::plugin::deploy ($source = '', $enabled = 'true') {
+define munin::plugin::deploy ($source = '', $ensure = 'present', $config = '') {
$real_source = $source ? {
'' => "munin/plugins/$name",
default => $source
@@ -106,9 +106,7 @@ define munin::plugin::deploy ($source = '', $enabled = 'true') {
mode => 0755, owner => root, group => 0;
}
- if $enabled {
- plugin{$name: ensure => present }
- }
+ munin::plugin{$name: ensure => $ensure, config => $config }
}
### clases for plugins