A terraform provider which integrates the Mirantis Launchpad tooling to natively install/remove the Mirantis container products as terraform resources.
Primarily, the provider provides resource types which will accept cluster and product configuration, which is used to configure launchpad to run. Launchpad executions are implemented using golang imports, not through shell commands, so no local environment constraints exist, other than terraform requirements.
- Terraform >= 1.4
- Go >= 1.20
- GoReleaser : If you want to use it locally
- Clone the repository
- Enter the repository directory
- Build the provider using the
make local
command (uses goreleaser)
$/> make local
This provider uses Go modules. Please see the Go documentation for the most up to date information about using Go modules.
To add a new dependency github.com/author/dependency
to your Terraform provider:
go get github.com/author/dependency
go mod tidy
Then commit the changes to go.mod
and go.sum
.
The provider, once installed properly can be used in any terraform root/chart.
Go to the terraform registry page and follow the instructions for declaring the provider version in your chart/module
@see https://registry.terraform.io/providers/Mirantis/launchpad/latest
The make local
target will use goreleaser to build the provider, and
then provide instructions on how to configure terraform
to use the
provider locally,
To generate or update documentation, run go generate
.
In order to run the testing mode unit test suite:
make test
In order to run the full suite of Acceptance tests, run make testacc
.
Note: Acceptance tests require that you have an environment set up for testing that launchpad can use.
make testacc
No requirements.
No inputs.
No outputs.