+ """
+ "Juju bundle that models the KDU, in any of the following ways:
+ - <juju-repo>/<juju-bundle>
+ - <juju-bundle folder under k8s_models folder in the package>
+ - <juju-bundle tgz file (w/ or w/o extension) under k8s_models folder in the package>
+ - <URL_where_to_fetch_juju_bundle>
+ """
+
+ previous_workdir = os.getcwd()
+
+ bundle = kdu_model
+ if kdu_model.startswith("cs:"):
+ bundle = kdu_model
+ elif kdu_model.startswith("http"):
+ # Download the file
+ pass
+ else:
+ new_workdir = kdu_model.strip(kdu_model.split("/")[-1])
+
+ os.chdir(new_workdir)
+
+ bundle = "local:{}".format(kdu_model)
+
+ if not bundle:
+ # Raise named exception that the bundle could not be found
+ raise Exception()
+
+ self.log.debug("[install] deploying {}".format(bundle))
+ await model.deploy(bundle)