X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fmunin%2Fmanifests%2Finit.pp;h=37b30303e715fc66457404bff77c12067a57d043;hb=07542997c11a1d8769a9fa21a660c0650e426c05;hp=c9b9853ed01a5a8ed3f4ed60a14ab27cbc3f7c1e;hpb=ec5e4ba1207bc06aa30f0bfe1ddfe99e2e42e22e;p=mirror%2Fdsa-puppet.git diff --git a/modules/munin/manifests/init.pp b/modules/munin/manifests/init.pp index c9b9853ed..37b30303e 100644 --- a/modules/munin/manifests/init.pp +++ b/modules/munin/manifests/init.pp @@ -9,22 +9,10 @@ class munin { require => Package['munin-node'], } - $owner = $::lsbdistcodename ? { - squeeze => munin, - wheezy => root, - undef => munin, - } - - $gid = $::lsbdistcodename ? { - squeeze => adm, - wheezy => 'www-data', - undef => adm, - } - file { '/var/log/munin': ensure => directory, - owner => $owner, - group => $gid, + owner => root, + group => 'www-data', mode => '0755', } @@ -45,9 +33,23 @@ class munin { require => Package['munin-node'], } - file { [ '/etc/munin/plugins/df', '/etc/munin/plugins/df_abs', '/etc/munin/plugins/df_inode' ]: - source => 'puppet:///modules/munin/df-wrap', - mode => '0555', + file { '/etc/munin/plugins/df': + ensure => link, + target => '/usr/share/munin/plugins/df', + require => Package['munin-node'], + notify => Service['munin-node'], + } + + file { '/etc/munin/plugins/df_abs': + ensure => link, + target => '/usr/share/munin/plugins/df_abs', + require => Package['munin-node'], + notify => Service['munin-node'], + } + + file { '/etc/munin/plugins/df_inode': + ensure => link, + target => '/usr/share/munin/plugins/df_inode', require => Package['munin-node'], notify => Service['munin-node'], } @@ -81,12 +83,10 @@ class munin { # ensure => 'absent', # } #} - if $::lsbmajdistrelease >= 7 { - package { 'munin-async': - ensure => installed - } - file { '/etc/ssh/userkeys/munin-async': - source => 'puppet:///modules/munin/munin-async-authkeys', - } + package { 'munin-async': + ensure => installed + } + file { '/etc/ssh/userkeys/munin-async': + source => 'puppet:///modules/munin/munin-async-authkeys', } }