infrastructure-as-code/openstack-tf/common_setups/30-internal-ca.tf

22 lines
745 B
Terraform
Raw Normal View History

2023-11-05 19:19:04 +01:00
resource "openstack_compute_instance_v2" "internal_ca" {
name = var.internal_ca_data.name
availability_zone_hints = var.availability_zones_names.availability_zone_no_gpu
flavor_name = var.internal_ca_data.flavor
key_pair = openstack_compute_keypair_v2.initial_ssh_key.name
security_groups = [openstack_networking_secgroup_v2.default.name]
block_device {
uuid = var.ubuntu_2204.uuid
source_type = "image"
volume_size = 10
boot_index = 0
destination_type = "volume"
delete_on_termination = false
}
network {
name = var.main_private_network.name
fixed_ip_v4 = var.basic_services_ip.ca
}
user_data = "${file("${var.ubuntu2204_data_file}")}"
}