80 lines
1.8 KiB
HCL
80 lines
1.8 KiB
HCL
variable "location" {
|
|
description = "Azure region for all resources in this module."
|
|
type = string
|
|
default = "westeurope"
|
|
}
|
|
|
|
variable "environment" {
|
|
description = "Deployment environment label (e.g. 'prod', 'staging')."
|
|
type = string
|
|
default = "prod"
|
|
}
|
|
|
|
variable "instance" {
|
|
description = "Instance identifier appended to resource names."
|
|
type = string
|
|
default = "homelab"
|
|
}
|
|
|
|
variable "tags" {
|
|
description = "Tags applied to all Azure resources in this module."
|
|
type = map(string)
|
|
default = {
|
|
project = "pangolin"
|
|
env = "prod"
|
|
}
|
|
}
|
|
|
|
variable "vm_name" {
|
|
description = "Name of the Azure Linux VM."
|
|
type = string
|
|
default = "pangolin-proxy"
|
|
}
|
|
|
|
variable "vm_size" {
|
|
description = "Azure VM size/SKU."
|
|
type = string
|
|
default = "Standard_A2_v2"
|
|
}
|
|
|
|
variable "admin_username" {
|
|
description = "Admin SSH username for the VM."
|
|
type = string
|
|
default = "azureuser"
|
|
}
|
|
|
|
variable "ssh_pubkey" {
|
|
description = "SSH public key content for the admin user."
|
|
type = string
|
|
}
|
|
|
|
variable "vnet_cidr_ipv4" {
|
|
description = "IPv4 address space for the virtual network."
|
|
type = string
|
|
default = "10.50.0.0/16"
|
|
}
|
|
|
|
variable "vnet_cidr_ipv6" {
|
|
description = "IPv6 address space for the virtual network."
|
|
type = string
|
|
default = "fd7d:bb99:1da4::/48"
|
|
}
|
|
|
|
variable "subnet_cidr_ipv4" {
|
|
description = "IPv4 CIDR for the VM subnet."
|
|
type = string
|
|
default = "10.50.1.0/24"
|
|
}
|
|
|
|
variable "subnet_cidr_ipv6" {
|
|
description = "IPv6 CIDR for the VM subnet."
|
|
type = string
|
|
default = "fd7d:bb99:1da4:195::/64"
|
|
}
|
|
|
|
variable "allowed_ssh_cidrs_ipv4" {
|
|
description = "IPv4 CIDRs allowed to SSH (22/tcp). Empty list means allow from anywhere."
|
|
type = list(string)
|
|
default = []
|
|
}
|