mirror of
https://github.com/zulip/zulip.git
synced 2025-11-07 07:23:22 +00:00
https://puppet.com/docs/puppet/7/style_guide.html#style_guide_module_design-quoting “If a string is a value from an enumerable set of options, such as present and absent, it SHOULD NOT be enclosed in quotes at all.” Signed-off-by: Anders Kaseorg <anders@zulip.com>
32 lines
857 B
Puppet
32 lines
857 B
Puppet
class zulip_ops::munin_node {
|
|
zulip::safepackage { ['munin-node', 'munin-plugins-extra']: ensure => installed }
|
|
|
|
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,
|
|
}
|
|
}
|