184 lines
6.6 KiB
HCL
184 lines
6.6 KiB
HCL
resource "vultr_instance" "infra1" {
|
|
plan = "vdc-4c-16gb"
|
|
region = "ewr"
|
|
os_id = "448"
|
|
label = "infra1"
|
|
tag = "advancedlsa infra"
|
|
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"
|
|
label = "compute1"
|
|
tag = "advancedlsa compute"
|
|
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" {
|
|
plan = "vc2-2c-4gb"
|
|
region = "ewr"
|
|
os_id = "448"
|
|
label = "storage1"
|
|
tag = "advancedlsa storage"
|
|
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
|
|
}
|
|
|
|
|
|
|
|
#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
|
|
#}
|