Forum Discussion
RavinderSingh13
Altocumulus
Nov 10, 2025Terraform AS3 code for GTM Only.
Hello All, I am really really suffering here :( Have been looking for GTM ONLY code in AS3 form, need a simple code hardcoded values will also work. I have seen documentation and couldn't see e...
Jeff_Granieri
Employee
Nov 14, 2025If your looking for a initial VM setup you need to have the base VM setup, networking , resources , and a deployed BIG-IP with a license. Provided you have a BIG-IP running on a VM you can leverage DO - Declarative Onboarding to help get things setup.
- Download the latest DO RPM from GitHub: https://github.com/F5Networks/f5-declarative-onboarding/releases (e.g., f5-declarative-onboarding-1.x.x-x.noarch.rpm).
- Access the BIG-IP GUI at https://<management-ip>.
- Navigate to iApps > Package Management LX.
- Click Import, select the RPM file, and click Upload. Wait for the installation to complete (check status).
- Verify: In the CLI (SSH as root), run tmsh list sys software or check the iApps page for "f5-declarative-onboarding"
- your going to need to amend various field below for your dsetup - IP.s keys,dns,ntp, admin accounts, self ip's etc
{ "schemaVersion": "1.0.0", "class": "Device", "async": true, "label": "Onboard BIG-IP VE for GTM/DNS", "Common": { "class": "Tenant", "mySystem": { "class": "System", "hostname": "gtm-bigip.example.com", "cliInactivityTimeout": 1200, "consoleInactivityTimeout": 1200, "autoPhonehome": false }, "myLicense": { "class": "License", "licenseType": "regKey", "regKey": "AAAAA-BBBBB-CCCCC-DDDDD-EEEEEEE" }, "myDns": { "class": "DNS", "nameServers": [ "8.8.8.8", "2001:4860:4860::8844" ], "search": [ "example.com" ] }, "myNtp": { "class": "NTP", "servers": [ "0.pool.ntp.org", "1.pool.ntp.org", "2.pool.ntp.org" ], "timezone": "UTC" }, "root": { "class": "User", "userType": "root", "oldPassword": "default", "newPassword": "newRootPassword123" }, "admin": { "class": "User", "userType": "regular", "password": "newAdminPassword123", "shell": "bash" }, "myProvisioning": { "class": "Provision", "ltm": "nominal", "gtm": "nominal" }, "internal": { "class": "VLAN", "tag": 4093, "mtu": 1500, "interfaces": [ { "name": "1.2", "tagged": true } ] }, "internal-self": { "class": "SelfIp", "address": "10.10.0.100/24", "vlan": "internal", "allowService": "default", "trafficGroup": "traffic-group-local-only" }, "external": { "class": "VLAN", "tag": 4094, "mtu": 1500, "interfaces": [ { "name": "1.1", "tagged": true } ] }, "external-self": { "class": "SelfIp", "address": "10.20.0.100/24", "vlan": "external", "allowService": "none", "trafficGroup": "traffic-group-local-only" }, "default": { "class": "Route", "gw": "10.10.0.1", "network": "default", "mtu": 1500 } } }curl -k -u admin:admin -H "Content-Type: application/json" -X POST https://<management-ip>/mgmt/shared/declarative-onboarding -d @do-declaration.json
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects