summaryrefslogtreecommitdiff
path: root/files/puppet/modules/custom_munin_node/manifests/init.pp
diff options
context:
space:
mode:
Diffstat (limited to 'files/puppet/modules/custom_munin_node/manifests/init.pp')
-rw-r--r--files/puppet/modules/custom_munin_node/manifests/init.pp30
1 files changed, 30 insertions, 0 deletions
diff --git a/files/puppet/modules/custom_munin_node/manifests/init.pp b/files/puppet/modules/custom_munin_node/manifests/init.pp
new file mode 100644
index 0000000..449b499
--- /dev/null
+++ b/files/puppet/modules/custom_munin_node/manifests/init.pp
@@ -0,0 +1,30 @@
+# Munin configuration for all nodes
+class custom_munin_node {
+ package { 'munin-node':
+ ensure => installed
+ }
+
+ service { 'munin-node':
+ ensure => running,
+ enable => true,
+ hasstatus => true,
+ hasrestart => true,
+ require => Package[munin-node];
+ }
+
+ file {'/etc/munin':
+ ensure => directory,
+ mode => '0755',
+ owner => root,
+ group => 0;
+ }
+
+ file {'/etc/munin/munin-node.conf':
+ source => 'puppet:///modules/custom_munin_node/munin-node.conf',
+ before => Package['munin-node'],
+ notify => Service['munin-node'],
+ mode => '0644',
+ owner => root,
+ group => 0;
+ }
+} \ No newline at end of file