megaraid_sas
authorPeter Palfrader <peter@palfrader.org>
Wed, 7 Nov 2018 18:11:47 +0000 (19:11 +0100)
committerPeter Palfrader <peter@palfrader.org>
Wed, 7 Nov 2018 18:11:47 +0000 (19:11 +0100)
modules/hardware/manifests/raid.pp
modules/hardware/manifests/raid/megaraid_sas.pp [new file with mode: 0644]

index a31fcab..1dac055 100644 (file)
@@ -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 (file)
index 0000000..e28918c
--- /dev/null
@@ -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,
+               }
+       }
+}