mirror of
https://github.com/zulip/zulip.git
synced 2025-10-29 02:53:52 +00:00
munin: Add a helper resource definition for munin plugins.
This commit is contained in:
committed by
Tim Abbott
parent
7c7b5fcd6f
commit
2a14212b27
15
puppet/zulip_ops/manifests/munin_plugin.pp
Normal file
15
puppet/zulip_ops/manifests/munin_plugin.pp
Normal file
@@ -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'],
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user