Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Create vms_platform.tf #25

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 50 additions & 0 deletions 02/src/vms_platform.tf
Original file line number Diff line number Diff line change
@@ -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"
}