1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
# OpenVPN specific stuff
class custom_munin_node::openvpn {
package { 'munin-plugins-core':
ensure => installed
}
file {'/etc/munin/plugins':
ensure => directory,
mode => '0755',
owner => root,
group => 0;
}
file {'/usr/share/munin/plugins/openvpn':
source => 'puppet:///modules/custom_munin_node/openvpn',
before => Package['munin-plugins-core'],
mode => '0755',
owner => root,
group => 0;
}
file {'/etc/munin/plugins/openvpn':
ensure => 'link',
target => '/usr/share/munin/plugins/openvpn',
before => Package['munin-plugins-core'],
owner => root,
group => 0;
}
concat{ '/etc/munin/plugin-conf.d/munin-openvpn':
owner => root,
group => root,
mode => '0644';
}
concat::fragment{ 'openvpn_udp':
target => '/etc/munin/plugin-conf.d/munin-openvpn',
content => "[openvpn]
user root
env.statusfile /var/run/openvpn-status-udp";
}
}
|