Files
zulip/puppet/zulip_ops/manifests/munin_node.pp
Anders Kaseorg 646a4d19a3 puppet: Remove quotes for enumerable values.
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>
2022-04-29 22:06:46 -07:00

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,
}
}