Initialize Terraform state files for Hetzner Cloud firewall configuration, including backup state with existing firewall rules.

This commit is contained in:
2025-12-22 23:26:50 +01:00
parent 3bbfa4d739
commit 34dd484004
13 changed files with 3476 additions and 5 deletions

View File

@@ -11,12 +11,18 @@ terraform {
}
}
variable netbox_token {
variable NETBOX_API_TOKEN {
type = string
description = "netbox api token"
sensitive = true
}
variable NETBOX_SERVER_URL {
type = string
description = "netbox server url"
sensitive = false
}
variable hcloud_token {
type = string
description = "hetzner cloud api token"
@@ -24,8 +30,8 @@ variable hcloud_token {
}
provider "netbox" {
url = "http://91.98.205.65:8000"
token = var.netbox_token
server_url = var.NETBOX_SERVER_URL
api_token = var.NETBOX_API_TOKEN
}
provider "hcloud" {