- Terraform BIG-IP Provider documentation
- More complex examples of F5 Terraform JeffGiroux/f5-terraform
- macOS:
# brew install terraform
- Console
- Login as root, set the password
# config
-> set the static IP and Default GW# tmsh modify sys global-settings mgmt-dhcp disabled
# tmsh save sys config
- WebUI
- Login as admin, set the new password (or
# tmsh modify auth user admin password <password>
) - License the box (as TF can't license F5, only via BIG-IQ License Manager)
$ cd ./example1
$ terraform init # initialize the config and download providers
$ terraform plan # build the plan
$ terraform apply # apply the configuration
$ terraform destroy # remove configuration
- basic example with variables included directly in the config, please validate the provider configuration before use
- BIG-IP Configuration includes networking, DNS, NTP, VS and Pool
- pretty much the same example as the ./example1, the difference is usage of iApp defined as JSON to configure the VS, Pool and whole App configuration
- an ./example1 based demo
- variables stored in .tfvars file
- please fill the correct credentials and options into
terraform.tfvars
- please fill the correct credentials and options into
- besides the BIG-IP, TF will also create a DNS record in Cloudflare
- as example of linking values for the Cloudflare DNS A Record is used the bigip_ltm_virtual_server.http.destination value
$ terraform destroy -target=bigip_ltm_virtual_server.http
$ terraform destroy -target=bigip_ltm_pool_attachment.attach_node
$ terraform destroy -target=bigip_ltm_pool.pool
$ terraform destroy