aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryn M. Reeves <bmr@redhat.com>2013-03-21 03:07:11 -0700
committerBryn M. Reeves <bmr@redhat.com>2013-03-21 03:07:11 -0700
commitfd69211e321b33a84855a38b305a4d7125fbc53b (patch)
treecba24f9eabcf6673cda446e61b7b8c61b4cc896b
parent94cf67ae8aa99be70e51633491c70076d4ad727b (diff)
parent77aa5f79e08a6d3b0110932186b9d31388a164e9 (diff)
downloadsos-fd69211e321b33a84855a38b305a4d7125fbc53b.tar.gz
Merge pull request #101 from battlemidget/cloud-plugins
Add modules for Ubuntu cloud infrastructure - Azure hypervisor support - MAAS - Juju
-rw-r--r--sos/plugins/azure.py29
-rw-r--r--sos/plugins/juju.py24
-rw-r--r--sos/plugins/maas.py29
3 files changed, 82 insertions, 0 deletions
diff --git a/sos/plugins/azure.py b/sos/plugins/azure.py
new file mode 100644
index 00000000..b2c7f415
--- /dev/null
+++ b/sos/plugins/azure.py
@@ -0,0 +1,29 @@
+# Copyright (C) 2013 Adam Stokes <adam.stokes@ubuntu.com>
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+
+from sos.plugins import Plugin, UbuntuPlugin
+
+class azure(Plugin, UbuntuPlugin):
+ """ Microsoft Azure Client Plugin
+ """
+ packages = ('walinuxagent',)
+
+ def setup(self):
+ self.addCopySpecs(["/var/log/waagent*",
+ "/var/lib/cloud",
+ "/etc/default/kv-kvp-daemon-init",
+ "/sys/module/hv_netvsc/parameters/ring_size",
+ "/sys/module/hv_storvsc/parameters/storvsc_ringbuffer_size"])
diff --git a/sos/plugins/juju.py b/sos/plugins/juju.py
new file mode 100644
index 00000000..931eb436
--- /dev/null
+++ b/sos/plugins/juju.py
@@ -0,0 +1,24 @@
+# Copyright (C) 2013 Adam Stokes <adam.stokes@ubuntu.com>
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+
+from sos.plugins import Plugin, UbuntuPlugin
+
+class juju(Plugin, UbuntuPlugin):
+ """ Juju Plugin
+ """
+ def setup(self):
+ self.addCopySpecs(["/var/log/juju*",
+ "/var/lib/juju"])
diff --git a/sos/plugins/maas.py b/sos/plugins/maas.py
new file mode 100644
index 00000000..b9478d05
--- /dev/null
+++ b/sos/plugins/maas.py
@@ -0,0 +1,29 @@
+# Copyright (C) 2013 Adam Stokes <adam.stokes@ubuntu.com>
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+
+from sos.plugins import Plugin, UbuntuPlugin
+
+class maas(Plugin, UbuntuPlugin):
+ """ MAAS Plugin
+ """
+ def setup(self):
+ self.addCopySpecs(["/etc/squid-deb-proxy",
+ "/etc/maas",
+ "/var/lib/maas",
+ "/var/log/maas*"])
+ self.addCmdOutput("maas dumpdata")
+ self.addCmdOutput("/usr/bin/pg_dumpall")
+