A Terraform script to deploy an Active-Passive (A-P) HA cluster in a single zone. This template makes use of the FortiGate IBM SDN connector to failover in the event of a VM shutdown. After the active VM is back up, it will take over as active once again.
- Terraform 0.13+
- Two FortiOS 7.0 BYOL Licenses.
- A VPC with four subnets in a single zone
- A configured IBM SSH key
- A security group
Note: For a local deployment, a Gen 2 API key will be needed. For details see IBM Gen 2 API key.
Terraform deploys the following components:
- Two FortiGate BYOL instances with four NICs each, one in each subnet.
- Three floating Public IP addresses: one attached to the Primary FortiGate on Port1, which will failover and the other two attached to the HA management port (Port4) of each FortiGate.
- One log disk per FortiGate.
- A basic bootstrap configuration with HA support.
Note: For Subnets, the UUID is required.
-
Fill in the required Subnets, security group and VPC information as shown in the example below:
-
Apply the plan.
-
Outputs, such as the Public IP and Default username and password can be found under the
View Log
link.
To destroy the cluster, click on Actions...
->Destroy
.
Fortinet-provided scripts in this and other GitHub projects do not fall under the regular Fortinet technical support scope and are not supported by FortiCare Support Services. For direct issues, please refer to the Issues tab of this GitHub project. For other questions related to this project, contact github@fortinet.com.
License © Fortinet Technologies. All rights reserved.