diff --git a/02/src/vms_platform.tf b/02/src/vms_platform.tf new file mode 100644 index 00000000..03ceec9f --- /dev/null +++ b/02/src/vms_platform.tf @@ -0,0 +1,50 @@ +variable "vm_web_family" { + type = string + default = "ubuntu-2004-lts" + description = "ubuntu version" +} + +variable "vm_web_platform_id" { + type = string + default = "standard-v1" + description = "platform ID" +} + +variable "vm_db_family" { + type = string + default = "ubuntu-2004-lts" + description = "ubuntu version" +} + +variable "vms_resources" { + description = "Resources for all vms" + type = map(map(number)) + default = { + vm_web_resources = { + cores = 2 + memory = 1 + core_fraction = 5 + } + vm_db_resources = { + cores = 2 + memory = 2 + core_fraction = 20 + } + } +} + +variable "common_metadata" { + description = "metadata for all vms" + type = map(string) + default = { + serial-port-enable = "1" + ssh-keys = "ubuntu:ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIjKG3j7XxY3d7HWOm+GapAnyhBQHDG2niTOEtNwpq2G demonium@Debian" + } +} + + +variable "vm_db_platform_id" { + type = string + default = "standard-v1" + description = "platform ID" +}