|
|
|
|
@ -37,12 +37,13 @@ locals {
|
|
|
|
|
disk-size = 32
|
|
|
|
|
num = 2
|
|
|
|
|
},
|
|
|
|
|
"test" = {
|
|
|
|
|
"dev" = {
|
|
|
|
|
base-image = var.ubuntu-ami
|
|
|
|
|
aws-ec2-type = var.t2-micro-1gib-1vcpu
|
|
|
|
|
aws-ec2-type = var.t3a-medium-amd-4gib-2vcpu
|
|
|
|
|
# subnet-ids = [module.aws-network-from-scratch.subnet.id]
|
|
|
|
|
subnet-ids = [module.aws-network-existing.subnet-by-name["subnet_2"].id]
|
|
|
|
|
num = 0
|
|
|
|
|
subnet-ids = [module.aws-network-existing.subnet-by-name["subnet_4"].id]
|
|
|
|
|
disk-size = 32
|
|
|
|
|
num = 1
|
|
|
|
|
},
|
|
|
|
|
"nfs" = {
|
|
|
|
|
base-image = var.ubuntu-ami
|
|
|
|
|
@ -79,11 +80,21 @@ locals {
|
|
|
|
|
disk-group = "zfs-64g"
|
|
|
|
|
# TODO also make sure that get drive letters or whetever still works. did
|
|
|
|
|
# it ever work?
|
|
|
|
|
drive-letters = ["g"]
|
|
|
|
|
# TODO We need to have a map of drive letters to device path in linux.
|
|
|
|
|
# This gets a little more complicated becuase the t2 instances map to
|
|
|
|
|
# /dev/xvdg while the t3a instance types map to /dev/nvme0n1 where 0 is
|
|
|
|
|
# the nth drive connected. The nth drive does not seem to map to a drive
|
|
|
|
|
# letter, ie. drive letter "f" does not map to 6, the nth drive simply
|
|
|
|
|
# increments by 1 for each drive attached regardless of the drive letter
|
|
|
|
|
# set.
|
|
|
|
|
drive-letters = ["g", "h", "i"]
|
|
|
|
|
},
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
install-qemu-agent = false
|
|
|
|
|
# TODO remove after nfs mounts are figured out.
|
|
|
|
|
# nfs_home_dir_mount = true
|
|
|
|
|
# nfs_server =
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
|
|