ci/cd roles

This commit is contained in:
CC
2026-05-21 16:20:22 +01:00
parent 7f679b6ae2
commit edaff5a978
2 changed files with 30 additions and 26 deletions

View File

@@ -1,40 +1,44 @@
variable "instance_mode" {
type = string
default = "single"
type = string
description = "single or multiple"
validation {
condition = contains(["single", "multiple"], var.instance_mode)
error_message = "instance_mode must be either single or multiple."
}
}
variable "instance" {
description = "Single instance definition"
type = object({
service_name = string
vm_name = string
node_name = string
vm_cpu = optional(number)
vm_ram = optional(number)
vm_size = optional(string)
app_port = number
app_image = string
vm_tags = optional(list(string))
service_name = string
vm_name = string
node_name = string
vm_cpu = optional(number)
vm_ram = optional(number)
vm_size = optional(string)
vm_tags = optional(list(string))
})
default = null
default = null
nullable = true
description = "Used only when instance_mode = single."
}
variable "instances" {
description = "Multiple instance definitions"
type = map(object({
service_name = string
vm_name = string
node_name = string
vm_cpu = optional(number)
vm_ram = optional(number)
vm_size = optional(string)
app_port = number
app_image = string
vm_tags = optional(list(string))
service_name = string
vm_name = string
node_name = string
vm_cpu = optional(number)
vm_ram = optional(number)
vm_size = optional(string)
vm_tags = optional(list(string))
}))
default = {}
default = {}
nullable = false
description = "Used only when instance_mode = multiple."
}
variable "vm_defaults" {
type = object({
node_datastore = string