From: Silvio Rhatto Date: Fri, 26 Mar 2010 02:01:03 +0000 (-0300) Subject: Configuring smart plugin, adding disks fact and adding package gitk on utils::desktop X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=1cf285a91d82461cbca33b35527a0eb30ba12e29;p=puppet-nodo.git Configuring smart plugin, adding disks fact and adding package gitk on utils::desktop --- 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, }