summaryrefslogtreecommitdiff
path: root/files/puppet/modules/custom_munin_node/manifests/openvpn.pp
diff options
context:
space:
mode:
Diffstat (limited to 'files/puppet/modules/custom_munin_node/manifests/openvpn.pp')
-rw-r--r--files/puppet/modules/custom_munin_node/manifests/openvpn.pp35
1 files changed, 35 insertions, 0 deletions
diff --git a/files/puppet/modules/custom_munin_node/manifests/openvpn.pp b/files/puppet/modules/custom_munin_node/manifests/openvpn.pp
new file mode 100644
index 0000000..84ce219
--- /dev/null
+++ b/files/puppet/modules/custom_munin_node/manifests/openvpn.pp
@@ -0,0 +1,35 @@
+# 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 {'/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";
+ }
+} \ No newline at end of file