Compute Node (IaaS)
Provision virtual machines on NetActuate using Terraform. The module outputs a ready-to-use Ansible inventory for optional follow-on configuration.
Repository
git clone https://github.com/netactuate/netactuate-ansible-terraform-compute
cd netactuate-terraform-compute
Configuration
Copy terraform.tfvars.example to terraform.tfvars and fill in:
| Variable | Description | Example |
|---|---|---|
api_key | NetActuate API key | From Account → API Access |
locations | List of PoP codes | ["LAX", "AMS"] |
vm_count_per_location | VMs per location | 1 |
plan | VM size | VR8x4x50 |
os_image | OS image name | See OS Images |
hostname_prefix | Name prefix | worker |
ssh_key_id | Existing SSH key ID | From Account → SSH Keys in the portal |
Deployment
terraform init
terraform plan
terraform apply
Ansible Handoff
terraform output -raw ansible_inventory > inventory.ini
See Terraform + Ansible Handoff Pattern.
Teardown
terraform destroy
Related Resources
Need Help?
If you need assistance with Terraform, visit our support page.