(cloud-maas)= # The MAAS cloud and Juju This document describes details specific to using your existing MAAS cloud with Juju. > See more: [MAAS](https://maas.io/) When using this 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: {ref}`cloud-differences` As the differences related to (1) are already documented generically in the rest of the docs, here we record just those that follow from (2). ## Requirements Starting with `juju v.3.0`, versions of MAAS <2 are no longer supported. ## Notes on `juju add-cloud` Type in Juju: `maas` Name in Juju: User-defined. ## Notes on `juju add-credential` ### Authentication types #### `oauth1` Attributes: - maas-oauth: OAuth/API-key credentials for MAAS (required) ```{note} `maas-oauth` is your MAAS API key. See more: MAAS | How to add an API key for a user](https://maas.io/docs/how-to-manage-user-accounts#heading--api-key) ``` ## Supported constraints | {ref}`CONSTRAINT ` | | |----------------------------------------|--------------------------------------------------------------------------------------------------| | conflicting: | | | supported? | | | - {ref}`constraint-allocate-public-ip` | ✕ | | - {ref}`constraint-arch` | ✓
Valid values: See cloud provider. | | - {ref}`constraint-container` | ✓ | | - {ref}`constraint-cores` | ✓ | | - {ref}`constraint-cpu-power` | ✕ | | - {ref}`constraint-image-id` | ✓ (Starting with Juju 3.2)
Type: String.
Valid values: An image name from MAAS. | | - {ref}`constraint-instance-role` | ✕ | | - {ref}`constraint-instance-type` | ✕ | | - {ref}`constraint-mem` | ✓ | | - {ref}`constraint-root-disk` | ✓ | | - {ref}`constraint-root-disk-source` | ✕ | | - {ref}`constraint-spaces` | ✓ | | - {ref}`constraint-tags` | ✓ | | - {ref}`constraint-virt-type` | ✕ | | - {ref}`constraint-zones` | ✓ | ## Supported placement directives | {ref}`PLACEMENT DIRECTIVE ` | | |--------------------------------------------------|---------------------------------------------------------------------| | - {ref}`placement-directive-machine` | TBA | | - {ref}`placement-directive-subnet` | ✕ | | - {ref}`placement-directive-system-id` | ✓ | | - {ref}`placement-directive-zone` | ✓
If there's no '=' delimiter, assume it's a node name. |