summaryrefslogtreecommitdiff
path: root/manifests/plugins
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2009-09-29 22:52:53 +0200
committermh <mh@immerda.ch>2009-09-29 22:52:53 +0200
commitb3fa11ddcd74bd9e02d778846b31c84acad3ca40 (patch)
treec97d0c1b3d924cabee38c07c1c03faaa99ccbb14 /manifests/plugins
parent1893960c1babb6a261cc6fc399231e9c0644a104 (diff)
put file at correct location
Diffstat (limited to 'manifests/plugins')
-rw-r--r--manifests/plugins/deploy.pp37
1 files changed, 0 insertions, 37 deletions
diff --git a/manifests/plugins/deploy.pp b/manifests/plugins/deploy.pp
deleted file mode 100644
index 24ac3d3..0000000
--- a/manifests/plugins/deploy.pp
+++ /dev/null
@@ -1,37 +0,0 @@
-define munin::plugin::deploy ($source = '', $ensure = 'present', $config = '') {
- $plugin_src = $ensure ? {
- 'present' => $name,
- 'absent' => $name,
- default => $ensure
- }
- $real_source = $source ? {
- '' => "munin/plugins/$plugin_src",
- default => $source
- }
- include munin::plugin::scriptpaths
- file { "munin_plugin_${name}":
- path => "$munin::plugin::scriptpaths::script_path/${name}",
- source => "puppet://$server/$real_source",
- mode => 0755, owner => root, group => 0;
- }
-
- case $kernel {
- openbsd: { $basic_require = File['/var/run/munin'] }
- default: { $basic_require = Package['munin-node'] }
- }
- if $require {
- File["munin_plugin_${name}"]{
- require => [ $basic_require, $require ],
- }
- } else {
- File["munin_plugin_${name}"]{
- require => $basic_require,
- }
- }
- # register the plugin
- if $require {
- munin::plugin{$name: ensure => $ensure, config => $config, require => $require }
- } else {
- munin::plugin{$name: ensure => $ensure, config => $config }
- }
-}