X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fhardware%2Fmanifests%2Fraid%2Fproliant.pp;h=60189fc0547dd2e078175bf1940eeff15a4664eb;hb=44688b3127634f8a9369c6419f45a706a39ee628;hp=0c76cef5d880b7975b3f0658a034d3926e55915c;hpb=cd5628098d78a412a37d2ea784a8abefda52df9b;p=mirror%2Fdsa-puppet.git diff --git a/modules/hardware/manifests/raid/proliant.pp b/modules/hardware/manifests/raid/proliant.pp index 0c76cef5d..60189fc05 100644 --- a/modules/hardware/manifests/raid/proliant.pp +++ b/modules/hardware/manifests/raid/proliant.pp @@ -1,23 +1,45 @@ class hardware::raid::proliant { + if $::smartarraycontroller_hpsa or $::smartarraycontroller_cciss { + site::aptrepo { 'debian.restricted': + url => 'http://db.debian.org/debian-admin', + suite => "${::lsbdistcodename}-restricted", + components => 'non-free', + } - site::aptrepo { 'debian.restricted': - url => 'http://db.debian.org/debian-admin', - suite => "${::lsbdistcodename}-updates", - components => 'non-free', - } + package { 'hpacucli': + ensure => installed, + tag => extra_repo, + } + package { 'hpssacli': + ensure => installed, + tag => extra_repo, + } + if !("$::systemproductname" in ["ProLiant DL180 G5", "ProLiant DL120 G5", "ProLiant ML150 G5"]) { + package { 'hp-health': + ensure => installed, + tag => extra_repo, + } + } - package { 'hpacucli': - ensure => installed, - tag => extra_repo, - } - package { 'hp-health': - ensure => installed, - tag => extra_repo, - } + if $::debarchitecture == 'amd64' { + package { 'lib32gcc1': + ensure => installed, + } + } - if $::debarchitecture == 'amd64' { - package { 'lib32gcc1': - ensure => installed, + if $::smartarraycontroller_hpsa { + concat::fragment { 'dsa-check-hpssacli': + target => '/etc/cron.d/puppet-nagios-wraps', + order => '020', + content => @(EOF) + 27 */2 * * * root sleep $(( $RANDOM \% 900 )); dsa-wrap-nagios-check dsa-check-hpssacli + | EOF + } + } + file { '/etc/cron.d/puppet-nagios-hpsa': ensure => absent, } + } else { + site::aptrepo { 'debian.restricted': + ensure => absent, } } }