wireguard-setup/terraform/variables.tf

52 lines
1018 B
Terraform
Raw Normal View History

2020-01-30 21:33:16 +01:00
variable "hcloud_api_token" {
2021-06-14 22:49:37 +02:00
type = string
2020-01-30 21:33:16 +01:00
description = "Hetzner Cloud API token"
2022-03-02 20:23:08 +01:00
default = "xxxx"
2020-01-30 21:33:16 +01:00
}
variable "wg_server_name" {
2021-06-14 22:49:37 +02:00
type = string
2020-01-30 21:33:16 +01:00
description = "Server name"
2021-06-14 22:49:37 +02:00
default = "wireguard"
2020-01-30 21:33:16 +01:00
}
variable "wg_server_type" {
2021-06-14 22:49:37 +02:00
type = string
2020-01-30 21:33:16 +01:00
description = "Server type"
2021-06-14 22:49:37 +02:00
default = "cx11"
2020-01-30 21:33:16 +01:00
}
variable "wg_server_location" {
2021-06-14 22:49:37 +02:00
type = string
2020-01-30 21:33:16 +01:00
description = "Server location"
2021-06-14 22:49:37 +02:00
default = "fsn1"
2020-01-30 21:33:16 +01:00
}
2021-11-21 16:21:05 +01:00
variable "wg_server_wg_privatekey" {
2021-06-14 22:49:37 +02:00
type = string
2021-11-21 16:21:05 +01:00
description = "WireGuard private key"
default = ""
}
variable "wg_server_wg_peer_publickeys" {
type = list(string)
description = "WireGuard peer public keys"
default = []
2020-01-30 21:33:16 +01:00
}
2021-11-21 16:21:05 +01:00
variable "wg_firewall_name" {
2021-06-14 22:49:37 +02:00
type = string
2021-11-21 16:21:05 +01:00
description = "Firewall name"
default = "wireguard"
2020-01-30 21:33:16 +01:00
}
2021-11-21 16:21:05 +01:00
variable "wg_ssh_publickey" {
2021-06-14 22:49:37 +02:00
type = string
2021-11-21 16:21:05 +01:00
description = "SSH public key"
2020-01-30 21:33:16 +01:00
}
2021-11-21 16:21:05 +01:00
variable "wg_ssh_publickey_name" {
type = string
description = "SSH public key name"
2020-01-30 21:33:16 +01:00
}