Skip to main content

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:

VariableDescriptionExample
api_keyNetActuate API keyFrom Account → API Access
locationsList of PoP codes["LAX", "AMS"]
vm_count_per_locationVMs per location1
planVM sizeVR8x4x50
os_imageOS image nameSee OS Images
hostname_prefixName prefixworker
ssh_key_idExisting SSH key IDFrom 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

Need Help?

If you need assistance with Terraform, visit our support page.