This project creates a FortiGate HA cluster on STACKIT. It's based on the example given in the Fortinet OpenStack Administration Guide.
A STACKIT service account with owner permissions at the organization level is needed. If you don't have one already, follow these steps:
- In the resource manager, create a dummy project within your STACKIT organization where the service account lives (e. g.
pro-dummy). - In the resource manager, switch to the newly created project and create a service account.
- Create a service account key for the service account and save it.
- In the resource manager, switch to your STACKIT organization and assign the owner role to the service account.
The following tools need to be available on the machine that shall run the code:
- Terraform / OpenTofu
| Name | Version |
|---|---|
| stackit | ~> 0.69.0 |
| Name | Version |
|---|---|
| stackit | 0.69.0 |
No modules.
| Name | Description | Type | Default | Required |
|---|---|---|---|---|
| environment | The environment name, e. g. test or prod. | string |
"test" |
no |
| owner_email | Your email address. | string |
n/a | yes |
| public_key_path | Path to your SSH key public key. | string |
n/a | yes |
| stackit_organization_id | Your STACKIT organization ID. | string |
n/a | yes |
| stackit_service_account_key_path | Path to your STACKIT service account key JSON file. | string |
n/a | yes |
No outputs.
- Make sure the prerequisites are met
- Assign values to the variables (e. g. through a
.tfvarsfile or environment variables) - Place the needed Alpine image as
alpine.qcow2(download here) and the FortiGate KVM image asfortios.qcow2(download here) into the project's root folder - Run
terraform plan/tofu planand check if the plan matches your expectations - Run
terraform apply/tofu applyto deploy the infrastructure
If you need help with the usage of this project, feel free to create an issue. For help with STACKIT in general, contact us at stackit@ventx.de and we'll see how we can assist you on your journey with STACKIT 😊
Need help with anything else? Come visit us at ventx.de to get an overview of what we have to offer!
Ideas for improvements? Create an issue or a pull request!