X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fhardware%2Fmanifests%2Fraid%2Fproliant.pp;h=a19ec2849f2153f9fda6812bcfb57f174b24c828;hb=6b3f2197570ae91174b38c04329414c5166c8d05;hp=fe6cbc9f4c10e26b13ff62796b459884a5d583b2;hpb=63cd5189774fd9905eccb756701ac1e086297fa4;p=mirror%2Fdsa-puppet.git diff --git a/modules/hardware/manifests/raid/proliant.pp b/modules/hardware/manifests/raid/proliant.pp index fe6cbc9f4..a19ec2849 100644 --- a/modules/hardware/manifests/raid/proliant.pp +++ b/modules/hardware/manifests/raid/proliant.pp @@ -1,29 +1,34 @@ class hardware::raid::proliant { + if $::smartarraycontroller { + 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}-restricted", - 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, + 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, + } + } - if $::debarchitecture == 'amd64' { - package { 'lib32gcc1': - ensure => installed, + if $::debarchitecture == 'amd64' { + package { 'lib32gcc1': + ensure => installed, + } + } + } else { + site::aptrepo { 'debian.restricted': + ensure => absent, } } }