diff options
-rw-r--r-- | lib/facter/disks.rb | 7 | ||||
-rw-r--r-- | manifests/physical.pp | 4 | ||||
-rw-r--r-- | manifests/subsystems/utils.pp | 2 |
3 files changed, 12 insertions, 1 deletions
diff --git a/lib/facter/disks.rb b/lib/facter/disks.rb new file mode 100644 index 0000000..60975e5 --- /dev/null +++ b/lib/facter/disks.rb @@ -0,0 +1,7 @@ +# return the list of disks +Facter.add("disks") do + confine :kernel => :linux + setcode do + `egrep '[sh]d[a-z]+$' /proc/partitions | awk '{ print $4 }' | xargs`.split(' ') + end +end diff --git a/manifests/physical.pp b/manifests/physical.pp index bad5fe7..3c4ad03 100644 --- a/manifests/physical.pp +++ b/manifests/physical.pp @@ -41,4 +41,8 @@ class nodo::physical inherits nodo { # SMART monitoring include munin::plugins::smart + munin::plugin { "sda": + ensure => "smart_", + config => "user root\ngroup disk", + } } diff --git a/manifests/subsystems/utils.pp b/manifests/subsystems/utils.pp index 0995331..1cb5585 100644 --- a/manifests/subsystems/utils.pp +++ b/manifests/subsystems/utils.pp @@ -42,7 +42,7 @@ class utils::desktop { 'gawk', 'telnet', 'fpm', 'procmail', 'msmtp', 'netpbm', 'gqview', 'antiword', 'mairix', - 'mozilla-plugin-gnash' ]: + 'gitk', 'mozilla-plugin-gnash' ]: ensure => installed, } |