aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sos/plugins/iscsi.py24
1 files changed, 17 insertions, 7 deletions
diff --git a/sos/plugins/iscsi.py b/sos/plugins/iscsi.py
index a81ca528..7324b262 100644
--- a/sos/plugins/iscsi.py
+++ b/sos/plugins/iscsi.py
@@ -14,7 +14,7 @@
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
-from sos.plugins import Plugin, RedHatPlugin
+from sos.plugins import Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin
class Iscsi(Plugin):
@@ -24,13 +24,7 @@ class Iscsi(Plugin):
plugin_name = "iscsi"
profiles = ('storage',)
-
-class RedHatIscsi(Iscsi, RedHatPlugin):
-
- packages = ('iscsi-initiator-utils',)
-
def setup(self):
- super(RedHatIscsi, self).setup()
self.add_copy_spec([
"/etc/iscsi/iscsid.conf",
"/etc/iscsi/initiatorname.iscsi",
@@ -43,4 +37,20 @@ class RedHatIscsi(Iscsi, RedHatPlugin):
"iscsiadm -m node --op=show"
])
+
+class RedHatIscsi(Iscsi, RedHatPlugin):
+
+ packages = ('iscsi-initiator-utils',)
+
+ def setup(self):
+ super(RedHatIscsi, self).setup()
+
+
+class DebianIscsi(Iscsi, DebianPlugin, UbuntuPlugin):
+
+ packages = ('open-iscsi',)
+
+ def setup(self):
+ super(DebianIscsi, self).setup()
+
# vim: set et ts=4 sw=4 :