Files
linux-cloud-router/examples/azure/variables.tf
T

182 lines
4.8 KiB
Terraform

variable "subscription_id" {
description = "Azure subscription ID to deploy into."
type = string
}
variable "tenant_id" {
description = "Azure AD tenant ID. Leave empty to use the tenant of the credentials Terraform is running with."
type = string
default = ""
}
variable "location" {
description = "Azure region to deploy into."
type = string
}
variable "name" {
description = "Base name used to derive resource names."
type = string
default = "linux-manager-example"
}
variable "admin_ssh_public_key" {
description = "SSH public key installed for the admin_username on both VMs."
type = string
}
variable "admin_username" {
description = "Admin username on both VMs."
type = string
default = "azureuser"
}
variable "admin_password" {
description = "Admin password for the server VM, accepted alongside the SSH key; empty disables password authentication."
type = string
default = ""
sensitive = true
}
variable "vm_size" {
description = "VM size for the server."
type = string
default = "Standard_B2ls_v2"
}
variable "local_fqdn" {
description = "FQDN of the server, used as the IKE identity and, when dns_zone_id is set, as the name of the A record created for it."
type = string
}
variable "dns_zone_id" {
description = "Resource ID of an existing Azure DNS zone, holding local_fqdn, to create local_fqdn's A record in, pointing at the server's public IP; null for no record."
type = string
nullable = true
default = null
}
variable "local_id_mode" {
description = "IKE local identity source: fqdn, public_ip or internal_ip."
type = string
default = "fqdn"
}
variable "local_cidrs" {
description = "Local subnet CIDR(s) advertised into the site-to-site tunnel, the workload subnet CIDR among them."
type = string
}
variable "remote_addrs" {
description = "Remote gateway address(es) or FQDN for the site-to-site tunnel."
type = string
}
variable "remote_id" {
description = "Remote peer's IKE identity, without a leading @."
type = string
}
variable "remote_cidrs" {
description = "Remote subnet CIDR(s) reachable through the site-to-site tunnel."
type = string
}
variable "psk" {
description = "Pre-shared key for the site-to-site IKEv2 tunnel."
type = string
sensitive = true
}
variable "p2s_enabled" {
description = "Enable IKEv2 access."
type = bool
default = false
}
variable "p2s_address_pool" {
description = "CIDR block assigned to IKEv2 clients."
type = string
default = ""
}
variable "simple_ca_url" {
description = "The https:// URL of the Simple CA service that signs the router's issuing CAs; empty for a root the package creates."
type = string
default = ""
}
variable "trusted_ca_files" {
description = "Paths to PEM certificates of CAs added to the server's system trust store."
type = list(string)
default = []
}
variable "simple_ca_setup_code" {
description = "The one-time setup code of a sign-ca token of the Simple CA issuing CA, valid until the router's first boot."
type = string
default = ""
sensitive = true
}
variable "wireguard_enabled" {
description = "Enable the WireGuard endpoint."
type = bool
default = false
}
variable "wireguard_address" {
description = "Address and prefix length for the wg0 interface."
type = string
default = ""
}
variable "wireguard_listen_port" {
description = "UDP port WireGuard listens on."
type = number
default = 51820
}
variable "deploy_workload_vm" {
description = "Deploy a bare VM on the workload subnet."
type = bool
default = false
}
variable "repo_url" {
description = "Base URL of the Debian package repository the server pulls linux-manager from."
type = string
default = "https://gitea.koszewscy.waw.pl/api/packages/koszewscy/debian"
}
variable "ubuntu_codename" {
description = "Ubuntu release codename of the server VM's image, the apt repository's distribution."
type = string
default = "resolute"
}
variable "vnet_address_space" {
description = "Address space of the example VNet."
type = string
default = "10.0.0.0/16"
}
variable "ext_subnet_cidr" {
description = "CIDR of the server's external (WAN-facing) subnet."
type = string
default = "10.0.1.0/24"
}
variable "int_subnet_cidr" {
description = "CIDR of the server's internal (protected-network-facing) subnet."
type = string
default = "10.0.2.0/24"
}
variable "workload_subnet_cidr" {
description = "CIDR of the demo protected workload subnet, routed through the server."
type = string
default = "10.0.3.0/24"
}