60 lines
1.6 KiB
Terraform
60 lines
1.6 KiB
Terraform
variable "server_type" {
|
|
description = "Server type for dev (Gitea + Runner)."
|
|
type = string
|
|
}
|
|
|
|
variable "image" {
|
|
description = "OS image used for the server."
|
|
type = string
|
|
}
|
|
|
|
variable "location" {
|
|
description = "Hetzner Cloud datacenter location."
|
|
type = string
|
|
}
|
|
|
|
variable "ssh_key_id" {
|
|
description = "ID of the Hetzner Cloud SSH key to install on the server."
|
|
type = string
|
|
}
|
|
|
|
variable "network_id" {
|
|
description = "ID of the private network to attach dev to."
|
|
type = string
|
|
}
|
|
|
|
variable "private_ip" {
|
|
description = "Private network IP for dev."
|
|
type = string
|
|
}
|
|
|
|
variable "volume_size" {
|
|
description = "Size in GB of the volume attached to dev (disk2 in docs/architecture.md)."
|
|
type = number
|
|
}
|
|
|
|
variable "allowed_ssh_source_ips" {
|
|
description = "CIDRs allowed to reach port 22 on dev. Set by the root module to the vpn server's public IP."
|
|
type = list(string)
|
|
}
|
|
|
|
variable "network_ip_range" {
|
|
description = "CIDR of the private network, allowed through the firewall for traffic from prod."
|
|
type = string
|
|
}
|
|
|
|
variable "bootstrap_script" {
|
|
description = "Rendered post-install script, uploaded and executed on the server immediately after creation."
|
|
type = string
|
|
}
|
|
|
|
variable "ssh_private_key_path" {
|
|
description = "Local path to the private key matching var.ssh_key_id, used to run the bootstrap script over SSH."
|
|
type = string
|
|
}
|
|
|
|
variable "runner_count" {
|
|
description = "Number of Gitea Actions runner containers to render into services/dev/Runners/docker-compose.yml."
|
|
type = number
|
|
}
|