diff options
-rw-r--r-- | sos/plugins/juju.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sos/plugins/juju.py b/sos/plugins/juju.py index 2efcc2ae..b9e052f7 100644 --- a/sos/plugins/juju.py +++ b/sos/plugins/juju.py @@ -47,6 +47,9 @@ class Juju(Plugin, UbuntuPlugin): option_list = [ ('export-mongodb', 'Export mongodb collections as json files', '', False), + ('generate-bundle', + """Generate a YAML bundle of the current environment + (requires juju-deployerizer)""", '', False), ] def get_deployed_services(self): @@ -88,5 +91,9 @@ class Juju(Plugin, UbuntuPlugin): if self.get_option("export-mongodb"): self.export_mongodb() + if self.get_option("generate-bundle"): + self.add_cmd_output("juju deployerizer --include-charm-versions", + suggest_filename="juju-env-bundle.yaml") + # vim: et ts=4 sw=4 |