Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

munin: Add a helper resource definition for munin plugins.

Alex Vandiver2a14212b271c
diff --git a/puppet/zulip_ops/manifests/munin_plugin.pp b/puppet/zulip_ops/manifests/munin_plugin.pp
new file mode 100644
index 00000000000..983ab9fc945
--- /dev/null
+++ b/puppet/zulip_ops/manifests/munin_plugin.pp
@@ -0,0 +1,15 @@
+define zulip_ops::munin_plugin {
+ file { "/usr/local/munin/lib/plugins/${title}":
+ owner => 'root',
+ group => 'root',
+ mode => '0755',
+ source => "puppet:///modules/zulip_ops/munin-plugins/${title}",
+ }
+
+ file { "/etc/munin/plugins/${name}":
+ ensure => 'link',
+ require => File["/usr/local/munin/lib/plugins/${title}"],
+ target => "/usr/local/munin/lib/plugins/${title}",
+ notify => Service['munin-node'],
+ }
+}