summaryrefslogtreecommitdiff
path: root/files/puppet/modules/custom_munin_node/manifests/init.pp
blob: 449b4992769a850474436c013d36fcd119a97161 (plain)
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
# 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;
  }
}