From 1cf285a91d82461cbca33b35527a0eb30ba12e29 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Thu, 25 Mar 2010 23:01:03 -0300 Subject: Configuring smart plugin, adding disks fact and adding package gitk on utils::desktop --- lib/facter/disks.rb | 7 +++++++ manifests/physical.pp | 4 ++++ manifests/subsystems/utils.pp | 2 +- 3 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 lib/facter/disks.rb 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, } -- cgit v1.2.3