2021-12-29 21:15:05 +00:00
|
|
|
resource "vultr_instance" "infra1" {
|
2022-01-10 18:24:26 +00:00
|
|
|
plan = "vdc-4c-16gb"
|
2021-12-29 21:15:05 +00:00
|
|
|
region = "ewr"
|
|
|
|
os_id = "448"
|
2021-12-29 23:02:43 +00:00
|
|
|
label = "infra1"
|
|
|
|
tag = "advancedlsa infra"
|
2021-12-29 21:15:05 +00:00
|
|
|
hostname = "ala-infra1"
|
|
|
|
enable_ipv6 = false
|
|
|
|
backups = "disabled"
|
|
|
|
ddos_protection = false
|
|
|
|
activation_email = false
|
|
|
|
script_id = "0eeabbfb-2d2f-4797-a85a-82d3e1f235bd"
|
|
|
|
ssh_key_ids = [vultr_ssh_key.terraform.id]
|
|
|
|
private_network_ids = [vultr_private_network.mgmt.id, vultr_private_network.tunnel.id, vultr_private_network.storage.id]
|
|
|
|
}
|
|
|
|
|
|
|
|
resource "vultr_instance" "compute1" {
|
|
|
|
plan = "vdc-2c-8gb"
|
|
|
|
region = "ewr"
|
|
|
|
os_id = "448"
|
2021-12-29 23:02:43 +00:00
|
|
|
label = "compute1"
|
|
|
|
tag = "advancedlsa compute"
|
2021-12-29 21:15:05 +00:00
|
|
|
hostname = "ala-compute1"
|
|
|
|
enable_ipv6 = false
|
|
|
|
backups = "disabled"
|
|
|
|
ddos_protection = false
|
|
|
|
activation_email = false
|
|
|
|
script_id = "0eeabbfb-2d2f-4797-a85a-82d3e1f235bd"
|
|
|
|
ssh_key_ids = [vultr_ssh_key.terraform.id]
|
|
|
|
private_network_ids = [vultr_private_network.mgmt.id, vultr_private_network.tunnel.id, vultr_private_network.storage.id]
|
|
|
|
}
|
|
|
|
|
|
|
|
resource "vultr_instance" "storage1" {
|
2022-01-10 18:24:26 +00:00
|
|
|
plan = "vc2-2c-4gb"
|
2021-12-29 21:15:05 +00:00
|
|
|
region = "ewr"
|
|
|
|
os_id = "448"
|
2021-12-29 23:02:43 +00:00
|
|
|
label = "storage1"
|
|
|
|
tag = "advancedlsa storage"
|
2021-12-29 21:15:05 +00:00
|
|
|
hostname = "ala-storage1"
|
|
|
|
enable_ipv6 = false
|
|
|
|
backups = "disabled"
|
|
|
|
ddos_protection = false
|
|
|
|
activation_email = false
|
|
|
|
script_id = "0eeabbfb-2d2f-4797-a85a-82d3e1f235bd"
|
|
|
|
ssh_key_ids = [vultr_ssh_key.terraform.id]
|
|
|
|
private_network_ids = [vultr_private_network.mgmt.id, vultr_private_network.storage.id]
|
|
|
|
}
|
|
|
|
|
|
|
|
resource "vultr_block_storage" "cinder" {
|
|
|
|
size_gb = 100
|
|
|
|
region = "ewr"
|
|
|
|
label = "ala-storage-cinder"
|
|
|
|
attached_to_instance = vultr_instance.storage1.id
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2022-01-10 18:24:26 +00:00
|
|
|
|
2022-02-12 20:58:46 +00:00
|
|
|
#resource "vultr_instance" "aio1" {
|
|
|
|
# plan = "vc2-4c-8gb"
|
|
|
|
# region = "ewr"
|
|
|
|
# os_id = "448"
|
|
|
|
# label = "aio1"
|
|
|
|
# tag = "advancedlsa aio" #NO infra tag
|
|
|
|
# hostname = "ala-aio1"
|
|
|
|
# enable_ipv6 = false
|
|
|
|
# backups = "disabled"
|
|
|
|
# ddos_protection = false
|
|
|
|
# activation_email = false
|
|
|
|
# script_id = "0eeabbfb-2d2f-4797-a85a-82d3e1f235bd"
|
|
|
|
# ssh_key_ids = [vultr_ssh_key.terraform.id]
|
|
|
|
# private_network_ids = [vultr_private_network.mgmt2.id]
|
|
|
|
#}
|
|
|
|
#resource "vultr_block_storage" "cinder-aio" {
|
|
|
|
# size_gb = 100
|
|
|
|
# region = "ewr"
|
|
|
|
# label = "ala-storage-cinder-aio"
|
|
|
|
# attached_to_instance = vultr_instance.aio1.id
|
|
|
|
#}
|
|
|
|
#resource "vultr_instance" "aio2" {
|
|
|
|
# plan = "vc2-4c-8gb"
|
|
|
|
# region = "ewr"
|
|
|
|
# os_id = "448"
|
|
|
|
# label = "aio2"
|
|
|
|
# tag = "advancedlsa aio" #NO infra tag
|
|
|
|
# hostname = "ala-aio2"
|
|
|
|
# enable_ipv6 = false
|
|
|
|
# backups = "disabled"
|
|
|
|
# ddos_protection = false
|
|
|
|
# activation_email = false
|
|
|
|
# script_id = "0eeabbfb-2d2f-4797-a85a-82d3e1f235bd"
|
|
|
|
# ssh_key_ids = [vultr_ssh_key.terraform.id]
|
|
|
|
# private_network_ids = [vultr_private_network.mgmt2.id]
|
|
|
|
#}
|
|
|
|
#resource "vultr_block_storage" "cinder-aio2" {
|
|
|
|
# size_gb = 100
|
|
|
|
# region = "ewr"
|
|
|
|
# label = "ala-storage-cinder-aio"
|
|
|
|
# attached_to_instance = vultr_instance.aio2.id
|
|
|
|
#}
|
|
|
|
#resource "vultr_instance" "aio3" {
|
|
|
|
# plan = "vc2-4c-8gb"
|
|
|
|
# region = "ewr"
|
|
|
|
# os_id = "448"
|
|
|
|
# label = "aio3"
|
|
|
|
# tag = "advancedlsa aio" #NO infra tag
|
|
|
|
# hostname = "ala-aio3"
|
|
|
|
# enable_ipv6 = false
|
|
|
|
# backups = "disabled"
|
|
|
|
# ddos_protection = false
|
|
|
|
# activation_email = false
|
|
|
|
# script_id = "0eeabbfb-2d2f-4797-a85a-82d3e1f235bd"
|
|
|
|
# ssh_key_ids = [vultr_ssh_key.terraform.id]
|
|
|
|
# private_network_ids = [vultr_private_network.mgmt2.id]
|
|
|
|
#}
|
|
|
|
#resource "vultr_block_storage" "cinder-aio3" {
|
|
|
|
# size_gb = 100
|
|
|
|
# region = "ewr"
|
|
|
|
# label = "ala-storage-cinder-aio"
|
|
|
|
# attached_to_instance = vultr_instance.aio3.id
|
|
|
|
#}
|
|
|
|
#resource "vultr_instance" "aio4" {
|
|
|
|
# plan = "vc2-4c-8gb"
|
|
|
|
# region = "ewr"
|
|
|
|
# os_id = "448"
|
|
|
|
# label = "aio4"
|
|
|
|
# tag = "advancedlsa aio" #NO infra tag
|
|
|
|
# hostname = "ala-aio4"
|
|
|
|
# enable_ipv6 = false
|
|
|
|
# backups = "disabled"
|
|
|
|
# ddos_protection = false
|
|
|
|
# activation_email = false
|
|
|
|
# script_id = "0eeabbfb-2d2f-4797-a85a-82d3e1f235bd"
|
|
|
|
# ssh_key_ids = [vultr_ssh_key.terraform.id]
|
|
|
|
# private_network_ids = [vultr_private_network.mgmt2.id]
|
|
|
|
#}
|
|
|
|
#resource "vultr_block_storage" "cinder-aio4" {
|
|
|
|
# size_gb = 100
|
|
|
|
# region = "ewr"
|
|
|
|
# label = "ala-storage-cinder-aio"
|
|
|
|
# attached_to_instance = vultr_instance.aio4.id
|
|
|
|
#}
|
|
|
|
#resource "vultr_instance" "aio5" {
|
|
|
|
# plan = "vc2-16c-64gb"
|
|
|
|
# region = "ewr"
|
|
|
|
# os_id = "448"
|
|
|
|
# label = "aio5"
|
|
|
|
# tag = "advancedlsa aio" #NO infra tag
|
|
|
|
# hostname = "ala-aio5"
|
|
|
|
# enable_ipv6 = false
|
|
|
|
# backups = "disabled"
|
|
|
|
# ddos_protection = false
|
|
|
|
# activation_email = false
|
|
|
|
# script_id = "0eeabbfb-2d2f-4797-a85a-82d3e1f235bd"
|
|
|
|
# ssh_key_ids = [vultr_ssh_key.terraform.id]
|
|
|
|
# private_network_ids = [vultr_private_network.mgmt2.id]
|
|
|
|
#}
|
|
|
|
#resource "vultr_block_storage" "cinder-aio5" {
|
|
|
|
# size_gb = 100
|
|
|
|
# region = "ewr"
|
|
|
|
# label = "ala-storage-cinder-aio"
|
|
|
|
# attached_to_instance = vultr_instance.aio5.id
|
|
|
|
#}
|
|
|
|
#resource "vultr_instance" "aio6" {
|
|
|
|
# plan = "vc2-16c-64gb"
|
|
|
|
# region = "ewr"
|
|
|
|
# os_id = "448"
|
|
|
|
# label = "aio6"
|
|
|
|
# tag = "advancedlsa aio" #NO infra tag
|
|
|
|
# hostname = "ala-aio6"
|
|
|
|
# enable_ipv6 = false
|
|
|
|
# backups = "disabled"
|
|
|
|
# ddos_protection = false
|
|
|
|
# activation_email = false
|
|
|
|
# script_id = "0eeabbfb-2d2f-4797-a85a-82d3e1f235bd"
|
|
|
|
# ssh_key_ids = [vultr_ssh_key.terraform.id]
|
|
|
|
# private_network_ids = [vultr_private_network.mgmt2.id]
|
|
|
|
#}
|
|
|
|
#resource "vultr_block_storage" "cinder-aio6" {
|
|
|
|
# size_gb = 100
|
|
|
|
# region = "ewr"
|
|
|
|
# label = "ala-storage-cinder-aio"
|
|
|
|
# attached_to_instance = vultr_instance.aio6.id
|
|
|
|
#}
|