juju.cloud

Summary

Cloud

Cloud

Methods:

Reference

class juju.cloud.Cloud[source]

Bases: object

Variables:name – Name of the cloud
add_credential(credential)[source]

Add or replaces credentials for this cloud.

Parameters:credential (juju.Credential) – The Credential to add
bootstrap(controller_name, region=None, agent_version=None, auto_upgrade=False, bootstrap_constraints=None, bootstrap_series=None, config=None, constraints=None, credential=None, default_model=None, keep_broken=False, metadata_source=None, no_gui=False, to=None, upload_tools=False)[source]

Initialize a cloud environment.

Parameters:
  • controller_name (str) – Name of controller to create
  • region (str) – Cloud region in which to bootstrap
  • agent_version (str) – Version of tools to use for Juju agents
  • auto_upgrade (bool) – Upgrade to latest path release tools on first bootstrap
  • bootstrap_constraints (juju.Constraints) – Constraints for the bootstrap machine
  • bootstrap_series (str) – Series of the bootstrap machine
  • config (dict) – Controller configuration
  • constraints (juju.Constraints) – Default constraints for all future workload machines
  • credential (juju.Credential) – Credential to use when bootstrapping
  • default_model (str) – Name to give the default model
  • keep_broken (bool) – Don’t destroy model if bootstrap fails
  • metadata_source (str) – Local path to use as tools and/or metadata source
  • no_gui (bool) – Don’t install the Juju GUI in the controller when bootstrapping
  • to (str) – Placement directive for bootstrap node (typically used with MAAS)
  • upload_tools (bool) – Upload local version of tools before bootstrapping
get_credentials()[source]

Return list of all credentials for this cloud.

remove_credential(credential_name)[source]

Remove a credential for this cloud.

Parameters:credential_name (str) – Name of the credential to remove
set_default_credential(credential_name)[source]

Set the default credentials for this cloud.

Parameters:credential_name (str) – Credential to make default
set_default_region(region)[source]

Set the default region for this cloud.

Parameters:region (str) – Name of region to make default