diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2010-03-25 23:01:03 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2010-03-25 23:01:03 -0300 |
commit | 1cf285a91d82461cbca33b35527a0eb30ba12e29 (patch) | |
tree | 990a1dbb8fd74bda66642bcf3db6634f78175be3 | |
parent | cb1b6bfb20ace930621f224327f456a585e6e01c (diff) | |
download | puppet-nodo-1cf285a91d82461cbca33b35527a0eb30ba12e29.tar.gz puppet-nodo-1cf285a91d82461cbca33b35527a0eb30ba12e29.tar.bz2 |
Configuring smart plugin, adding disks fact and adding package gitk on utils::desktop
-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, } |