22 lines
745 B
Terraform
22 lines
745 B
Terraform
|
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}")}"
|
||
|
}
|