Terraform Openstack Provider Network Creation Templates
Create Provider network on the Openstack cluster. The network type will be VLAN
as per this terraform. The template will help to create bulk networks.
You will require to update the identity service in the terraform.tfvars
.
openstack_user_domain_name = "Default"
openstack_region = "RegionOne"
openstack_auth_url = "https://<OpenstackURL>:5000/v3"
openstack_project_name = "Project"
openstack_project_username = "admin"
openstack_project_password = "Password"
network_count
provide into terraform.tfvars according to the count you will need to provide as list.
network_count = 2
network_name = ["Network1","Network2"]
subnet_name = ["Subnet1","Subnet2"]
vlan_id = [500,501]
network_cidr = ["10.20.10.0/24","10.20.20.0/24"]
network_provider = "datacenter"
gateway = ["10.20.10.1","10.20.20.1"]
To check the plan of the terraform template
# terraform init
#terraform plan
#terraform apply
To delete the networks create by this terraform.
#terraform destroy