mirror of https://github.com/zulip/zulip.git
43 lines
1.1 KiB
Puppet
43 lines
1.1 KiB
Puppet
class zulip_ops::munin {
|
|
include zulip::supervisor
|
|
|
|
$munin_packages = [# Packages needed for munin
|
|
'munin',
|
|
'autossh',
|
|
# Packages needed for munin website
|
|
'libapache2-mod-fcgid',
|
|
]
|
|
package { $munin_packages: ensure => 'installed' }
|
|
|
|
$hosts_domain = zulipconf('nagios', 'hosts_domain', undef)
|
|
$hosts = $zulip_ops::base::hosts
|
|
|
|
file { '/etc/munin':
|
|
require => Package['munin'],
|
|
recurse => true,
|
|
owner => 'root',
|
|
group => 'root',
|
|
mode => '0644',
|
|
source => 'puppet:///modules/zulip_ops/munin'
|
|
}
|
|
|
|
file { '/etc/munin/munin.conf':
|
|
ensure => file,
|
|
require => [ Package['munin'], File['/etc/munin'] ],
|
|
owner => 'root',
|
|
group => 'root',
|
|
mode => '0644',
|
|
content => template('zulip_ops/munin/munin.conf.erb')
|
|
}
|
|
|
|
file { '/etc/supervisor/conf.d/munin_tunnels.conf':
|
|
ensure => file,
|
|
require => Package['supervisor', 'autossh'],
|
|
mode => '0644',
|
|
owner => 'root',
|
|
group => 'root',
|
|
content => template('zulip_ops/supervisor/conf.d/munin_tunnels.conf.erb'),
|
|
notify => Service['supervisor']
|
|
}
|
|
}
|