This repository contains the source code for the Terraform MAAS provider.
-
Clone the repository
-
Enter the repository directory
-
Build the provider with:
make build
-
(Optional): Install the freshly built provider with:
make install
The provider accepts the following config options:
- api_key: MAAS API key.
- api_url: URL for the MAAS API server (eg: http://127.0.0.1:5240/MAAS).
- api_version: MAAS API version used. It is optional and it defaults to
2.0
.
provider "maas" {
api_version = "2.0"
api_key = "YOUR MAAS API KEY"
api_url = "http://<MAAS_SERVER>[:MAAS_PORT]/MAAS"
}
The docs section contains details about each supported Terraform resource and data source.