Add dell srvadmin tool to try and improve health monitoring
authorJulien Cristau <jcristau@debian.org>
Tue, 8 Aug 2017 22:29:35 +0000 (18:29 -0400)
committerJulien Cristau <jcristau@debian.org>
Tue, 8 Aug 2017 22:40:13 +0000 (18:40 -0400)
modules/hardware/manifests/raid.pp
modules/hardware/manifests/raid/dell.pp [new file with mode: 0644]
modules/hardware/manifests/raid/megactl.pp [deleted file]

index 1705ea8..a31fcab 100644 (file)
@@ -1,8 +1,8 @@
 class hardware::raid {
        include hardware::raid::proliant
 
-       if $::productname == 'PowerEdge 2850' {
-               include hardware::raid::megactl
+       if $::productname == 'PowerEdge 1950' {
+               include hardware::raid::dell
        }
 
        include hardware::raid::raidmpt
diff --git a/modules/hardware/manifests/raid/dell.pp b/modules/hardware/manifests/raid/dell.pp
new file mode 100644 (file)
index 0000000..f81ec74
--- /dev/null
@@ -0,0 +1,12 @@
+class hardware::raid::dell {
+       site::aptrepo { 'debian.restricted':
+               url        => 'http://db.debian.org/debian-admin',
+               suite      => 'jessie-restricted',
+               components => 'non-free',
+       }
+
+       package { 'srvadmin-all':
+               ensure  => installed,
+               tag    => extra_repo,
+       }
+}
diff --git a/modules/hardware/manifests/raid/megactl.pp b/modules/hardware/manifests/raid/megactl.pp
deleted file mode 100644 (file)
index 60d2492..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-class hardware::raid::megactl {
-
-       package { 'megactl':
-               ensure => installed,
-               tag    => extra_repo,
-       }
-
-       site::aptrepo { 'debian.restricted':
-               url        => 'http://db.debian.org/debian-admin',
-               suite      => 'lenny-restricted',
-               components => 'non-free',
-       }
-}