summaryrefslogtreecommitdiff
path: root/manifests/remoteplugin.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/remoteplugin.pp')
-rw-r--r--manifests/remoteplugin.pp18
1 files changed, 18 insertions, 0 deletions
diff --git a/manifests/remoteplugin.pp b/manifests/remoteplugin.pp
new file mode 100644
index 0000000..4bca235
--- /dev/null
+++ b/manifests/remoteplugin.pp
@@ -0,0 +1,18 @@
+define munin::remoteplugin($ensure = "present", $source, $config = '') {
+ case $ensure {
+ "absent": { munin::plugin{ $name: ensure => absent } }
+ default: {
+ file {
+ "/var/lib/puppet/modules/munin/plugins/${name}":
+ source => $source,
+ mode => 0755, owner => root, group => 0;
+ }
+ munin::plugin { $name:
+ ensure => $ensure,
+ config => $config,
+ script_path_in => "/var/lib/puppet/modules/munin/plugins",
+ }
+ }
+ }
+}
+