juju.juju¶
Summary
Juju |
Methods: |
Reference
-
class
juju.juju.
Juju
[source]¶ Bases:
object
-
add_cloud
(name, definition, replace=False)[source]¶ Add a user-defined cloud to Juju from among known cloud types.
Parameters: - name (str) – Name of cloud
- definition (dict) – Cloud definition
Example cloud definition, as yaml:
type: openstack auth-types: [ userpass ] regions: london: endpoint: https://london.mycloud.com:35574/v3.0/
-
autoload_credentials
()[source]¶ Finds cloud credentials and caches them for use by Juju when bootstrapping.
-
get_controller
(name, include_passwords=False)[source]¶ Get a controller by name.
Parameters: - name (str) – Name of controller
- include_passwords (bool) – Include passwords for accounts
(maybe move this to Cloud?)
-
get_plans
(charm_url)[source]¶ Return list of plans available for the specified charm.
Parameters: charm_url (str) – Charm url
-
register
(registration_string)[source]¶ Register a user to a controller.
Parameters: registration_string (str) – The registration string
-