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.
- Create a new branch from
master
asrelease-vX.X.X
git branch release-vX.X.X master git push -u origin release-vX.X.X
- Update the
CHANGELOG.md
with your release version, date and change details and push the changes to the new branch. - Raise a PR on Github, title of the PR should be in the following format
Release vX.X.X
- Merge the PR into master, taking a note of the merge commit which is created
- Go to Releases on Github
- Click Draft a new release
- On
Target
choose the latest merge commit you want to release for - Set the
tag
to create a new tag for the version in the format "vX.X.X" - Set the
release title
to the release version, for examplev1.0.1
- Copy and paste the relevant CHANGELOG.md entries to the release description
- Click
Publish release
- The new version should be available on the Releases page