Format
This commit is contained in:
parent
051489f936
commit
38426c091e
@ -1,7 +1,7 @@
|
|||||||
terraform {
|
terraform {
|
||||||
required_providers {
|
required_providers {
|
||||||
hcloud = {
|
hcloud = {
|
||||||
source = "hetznercloud/hcloud"
|
source = "hetznercloud/hcloud"
|
||||||
version = "~> 1.32.1"
|
version = "~> 1.32.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -68,7 +68,7 @@ resource "hcloud_server" "wg_server" {
|
|||||||
labels = { service = "wireguard" }
|
labels = { service = "wireguard" }
|
||||||
firewall_ids = [hcloud_firewall.wg_firewall.id]
|
firewall_ids = [hcloud_firewall.wg_firewall.id]
|
||||||
ssh_keys = [hcloud_ssh_key.wg_ssh_key.id]
|
ssh_keys = [hcloud_ssh_key.wg_ssh_key.id]
|
||||||
user_data = templatefile("${path.module}/templates/user-data.tpl", {
|
user_data = templatefile("${path.module}/templates/user-data.tpl", {
|
||||||
wg_server_wg_privatekey = var.wg_server_wg_privatekey
|
wg_server_wg_privatekey = var.wg_server_wg_privatekey
|
||||||
wg_server_wg_peer_publickeys = var.wg_server_wg_peer_publickeys
|
wg_server_wg_peer_publickeys = var.wg_server_wg_peer_publickeys
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user