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',
}
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'],
}
# 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',
}
}