The MAAS cloud and Juju

List of supported clouds > MAAS

This document describes details specific to using your existing MAAS cloud with Juju.

See more: MAAS

When using the MAAS cloud with Juju, it is important to keep in mind that it is a (1) machine cloud and (2) not some other cloud.

See more: Cloud differences in Juju

As the differences related to (1) are already documented generically in our Tutorial, How-to guides, and Reference docs, here we record just those that follow from (2).

Juju points of variation Notes for the MAAS cloud
setup (chronological order):
CLOUD
supported versions: Starting with juju v.3.0, versions of MAAS <2 are no longer supported.
requirements: TBA
definition: Cloud type: maas. You will need to provide your cloud API endpoint.

If you want to use a YAML file:

clouds:
<user-defined cloud name>:
   type: maas
   auth-types:
     - oauth1
   endpoint: <the endpoint>

CREDENTIAL
definition: auth-type: oauth1, which requires you to provide your maas-oauth, i.e., your MAAS API key.
> See more: [MAAS `
CONTROLLER
notes on bootstrap:
other (alphabetical order:)
CONFIGURATION (model)
cloud-specific: TBA
CONSTRAINT
conflicting: TBA
supported?
- allocate-public-ip :x:
- arch :white_check_mark:
Valid values: See cloud provider.
- container :white_check_mark:
- cores :white_check_mark:
- cpu-power :x:
- image-id :white_check_mark: (Starting with Juju 3.2)
Type: String.
Valid values: An image name from MAAS.
- instance-role :x:
- instance-type :x:
- mem :white_check_mark:
- root-disk :white_check_mark:
- root-disk-source :x:
- spaces :white_check_mark:
- tags :white_check_mark:
- virt-type :x:
- zones :white_check_mark:
PLACEMENT DIRECTIVE
<machine> TBA
subnet=... :x:
system-id=... :white_check_mark:
zone=... :white_check_mark:
If there’s no ‘=’ delimiter, assume it’s a node name.
MACHINE
RESOURCE (cloud)

Consistent naming, tagging, and the ability to add user-controlled tags to created instances.

:x:

Contributors (starting with January 2024): @jadonn

I believe --local is outdated

--local  (= false)
    DEPRECATED (use --client): Local operation only; controller not affected

Can it be updated?
Thank you.

1 Like

consider adding an example to this doc:

clouds:
  this-maas:
    type: maas
    auth-types: [oauth1]
    endpoint: http://10.10.0.16:5240/MAAS/api/2.0

I updated the example YAML config for the clouds configuration to use correctly formatted YAML. I had problems myself when trying to use the old example in the documentation.

1 Like

@jadonn Thanks! PS Adding you to the Contributors to this doc (bottom of the doc).

It’s my pleasure @tmihoc ! Thank you for adding me as a contributor!