init: add initial code
This commit is contained in:
@@ -0,0 +1,88 @@
|
||||
variable "environment" {
|
||||
description = "The target environment (e.g., staging, prod)"
|
||||
type = string
|
||||
}
|
||||
|
||||
variable "service_name" {
|
||||
description = "The name of the service (e.g., s3)"
|
||||
type = string
|
||||
}
|
||||
|
||||
variable "subdomain" {
|
||||
description = "The subdomain prefix for the environment"
|
||||
type = string
|
||||
}
|
||||
|
||||
variable "vm_id" {
|
||||
description = "Proxmox VM ID"
|
||||
type = number
|
||||
}
|
||||
|
||||
variable "vm_name" {
|
||||
description = "Name of the VM in Proxmox UI and internal OS hostname"
|
||||
type = string
|
||||
}
|
||||
|
||||
variable "ip_address" {
|
||||
description = "Static IPv4 address in CIDR format (e.g., 10.1.1.2/8)"
|
||||
type = string
|
||||
}
|
||||
|
||||
variable "ssh_public_keys" {
|
||||
description = "List of public SSH keys for the admin user"
|
||||
type = list(string)
|
||||
}
|
||||
|
||||
variable "gateway" {
|
||||
description = "Network gateway IP address"
|
||||
type = string
|
||||
default = "10.0.0.1"
|
||||
}
|
||||
|
||||
variable "node_name" {
|
||||
description = "Proxmox node name"
|
||||
type = string
|
||||
default = "itlab-ffeks"
|
||||
}
|
||||
|
||||
variable "template_id" {
|
||||
description = "ID of the VM template to clone"
|
||||
type = number
|
||||
default = 205
|
||||
}
|
||||
|
||||
variable "cpu_cores" {
|
||||
description = "Number of CPU cores"
|
||||
type = number
|
||||
default = 1
|
||||
}
|
||||
|
||||
variable "memory_mb" {
|
||||
description = "RAM size in MB"
|
||||
type = number
|
||||
default = 2048
|
||||
}
|
||||
|
||||
variable "bridge" {
|
||||
description = "Network bridge interface"
|
||||
type = string
|
||||
default = "vmbr1"
|
||||
}
|
||||
|
||||
variable "monitor_dnu_dns" {
|
||||
description = "Enable monitoring of DNU DNS (if null, defaults to true for prod and false for staging)"
|
||||
type = bool
|
||||
default = null
|
||||
}
|
||||
|
||||
variable "http_health_check_path" {
|
||||
description = "The path for the HTTP health check monitor"
|
||||
type = string
|
||||
default = "/"
|
||||
}
|
||||
|
||||
variable "gitea_password" {
|
||||
description = "API Token/Password for Gitea remote HTTP state access"
|
||||
type = string
|
||||
sensitive = true
|
||||
}
|
||||
Reference in New Issue
Block a user