diff options
author | mh <mh@immerda.ch> | 2008-04-18 12:04:59 +0000 |
---|---|---|
committer | mh <mh@immerda.ch> | 2008-04-18 12:04:59 +0000 |
commit | 74463978e6be2d3e15d30358f40bf102851f5745 (patch) | |
tree | c5d220cd4c1e945c92b5a60b1efec49b53dd1d06 /manifests | |
parent | b6a92599a27cd0bdb4b97105fdf14286fed86329 (diff) |
fixed params and made it more all the same way
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/plugin.pp | 6 |
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 |