X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fmunin%2Fmanifests%2Finit.pp;h=37b30303e715fc66457404bff77c12067a57d043;hb=07542997c11a1d8769a9fa21a660c0650e426c05;hp=fcf772aa0ed142feb718a5721a65b0fc4ef04ff7;hpb=41c40c4a9c30480d08813b55fded8e147718f44f;p=mirror%2Fdsa-puppet.git diff --git a/modules/munin/manifests/init.pp b/modules/munin/manifests/init.pp index fcf772aa0..37b30303e 100644 --- a/modules/munin/manifests/init.pp +++ b/modules/munin/manifests/init.pp @@ -9,20 +9,10 @@ class munin { require => Package['munin-node'], } - $owner = $::lsbdistcodename ? { - squeeze => munin, - default => root, - } - - $gid = $::lsbdistcodename ? { - squeeze => adm, - default => 'www-data', - } - file { '/var/log/munin': ensure => directory, - owner => $owner, - group => $gid, + owner => root, + group => 'www-data', mode => '0755', } @@ -43,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'], } @@ -79,13 +83,10 @@ class munin { # ensure => 'absent', # } #} - warning("foo $::lsbmajdistrelease") - if $::lsbmajdistrelease == "testing/unstable" or $::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', } }