X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fhardware%2Fmanifests%2Fraid%2Fproliant.pp;h=78c5422a73342c5bc54d77fe442641585600dc21;hb=refs%2Fheads%2Fsalsa;hp=cd8afaadee5e4394768aafbcde13d87061d7965f;hpb=54a5b73da9aaf36bfbab8544116cd6a32c54a0a7;p=mirror%2Fdsa-puppet.git diff --git a/modules/hardware/manifests/raid/proliant.pp b/modules/hardware/manifests/raid/proliant.pp index cd8afaade..78c5422a7 100644 --- a/modules/hardware/manifests/raid/proliant.pp +++ b/modules/hardware/manifests/raid/proliant.pp @@ -1,10 +1,9 @@ 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', + base::aptrepo { 'debian.restricted': + ensure => absent, } + include debian_org::apt_restricted package { 'hpacucli': ensure => installed, @@ -31,11 +30,12 @@ class hardware::raid::proliant { $cmd = $hostname ? { 'lobos' => 'dsa-check-hpssacli --no-battery', 'villa' => 'dsa-check-hpssacli --no-battery', + 'lw08' => 'dsa-check-hpssacli --no-battery --ignore-cache', default => 'dsa-check-hpssacli' } - concat::fragment { 'dsa-puppet-stuff--nagios--dsa-check-hpssacli': - target => '/etc/cron.d/dsa-puppet-stuff', + concat::fragment { 'puppet-crontab--nagios--dsa-check-hpssacli': + target => '/etc/cron.d/puppet-crontab', order => '020', content => @("EOF") 27 */2 * * * root sleep $(( RANDOM \% 900 )); dsa-wrap-nagios-check ${cmd} @@ -44,7 +44,7 @@ class hardware::raid::proliant { } file { '/etc/cron.d/puppet-nagios-hpsa': ensure => absent, } } else { - site::aptrepo { 'debian.restricted': + base::aptrepo { 'debian.restricted': ensure => absent, } }