From 1880a0ed4cd8dca05733a088b65cf98b0591527e Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Wed, 7 Nov 2018 19:11:47 +0100 Subject: [PATCH] megaraid_sas --- modules/hardware/manifests/raid.pp | 1 + modules/hardware/manifests/raid/megaraid_sas.pp | 13 +++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 modules/hardware/manifests/raid/megaraid_sas.pp diff --git a/modules/hardware/manifests/raid.pp b/modules/hardware/manifests/raid.pp index a31fcabc1..1dac055b6 100644 --- a/modules/hardware/manifests/raid.pp +++ b/modules/hardware/manifests/raid.pp @@ -6,4 +6,5 @@ class hardware::raid { } include hardware::raid::raidmpt + include hardware::raid::megaraid_sas } diff --git a/modules/hardware/manifests/raid/megaraid_sas.pp b/modules/hardware/manifests/raid/megaraid_sas.pp new file mode 100644 index 000000000..e28918cd1 --- /dev/null +++ b/modules/hardware/manifests/raid/megaraid_sas.pp @@ -0,0 +1,13 @@ +class hardware::raid::dell { + if $::megaraid_sas { + site::aptrepo { 'debian.restricted': + url => 'http://db.debian.org/debian-admin', + suite => 'stretch-restricted', + components => 'non-free', + } + + package { 'megacli': + ensure => installed, + } + } +} -- 2.20.1