A Terraform script to deploy FortiGate-VM on Openstack
- Terraform >= 0.14.0
- Terraform Provider Openstack >= 1.35.0
- FortiGate-VM Flex VM token license
Terraform deploys the following components:
- FortiGate-VM instance(s) with two NICS
To deploy the FortiGate-VM to Openstack:
- Clone the repository.
- Customize variables in the
terraform.tfvars.example
andvariables.tf
file as needed. And renameterraform.tfvars.example
toterraform.tfvars
. - Initialize the providers and modules:
$ cd XXXXX $ terraform init
- Submit the Terraform plan:
$ terraform plan
- Verify output.
- Confirm and apply the plan:
$ terraform apply
- If output is satisfactory, type
yes
.
Output will include the information necessary to log in to the FortiGate-VM instances:
Outputs:
Default_Password = <default password>
Default_Username = admin
IP_Address = {
"<instance name>" = "<instance ipv4 address>"
:
}
## Destroy the instance
To destroy the instance, use the command:
```sh
$ terraform 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 [email protected].
License © Fortinet Technologies. All rights reserved.