2020-07-08 22:14:44 +02:00
|
|
|
class zulip_ops::munin_node {
|
2022-03-16 01:23:53 +01:00
|
|
|
zulip::safepackage { ['munin-node', 'munin-plugins-extra']: ensure => installed }
|
2020-07-08 22:14:44 +02:00
|
|
|
|
|
|
|
service { 'munin-node':
|
|
|
|
ensure => running,
|
|
|
|
require => Package['munin-node'],
|
|
|
|
}
|
|
|
|
|
|
|
|
file { '/etc/munin/munin-node.conf':
|
|
|
|
require => Package['munin-node'],
|
|
|
|
owner => 'root',
|
|
|
|
group => 'root',
|
|
|
|
mode => '0644',
|
|
|
|
source => 'puppet:///modules/zulip_ops/munin/munin-node.conf',
|
|
|
|
notify => Service['munin-node'],
|
|
|
|
}
|
|
|
|
|
|
|
|
file { '/etc/munin/plugin-conf.d':
|
|
|
|
require => Package['munin-node'],
|
|
|
|
recurse => true,
|
|
|
|
owner => 'root',
|
|
|
|
group => 'root',
|
|
|
|
mode => '0644',
|
|
|
|
source => 'puppet:///modules/zulip_ops/munin/plugin-conf.d',
|
|
|
|
notify => Service['munin-node'],
|
|
|
|
}
|
|
|
|
|
|
|
|
file { ['/usr/local/munin', '/usr/local/munin/lib', '/usr/local/munin/lib/plugins']:
|
|
|
|
ensure => directory,
|
|
|
|
}
|
|
|
|
}
|