Initialize Terraform state files for Hetzner Cloud firewall configuration, including backup state with existing firewall rules.
This commit is contained in:
@@ -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" {
|
||||
|
||||
Reference in New Issue
Block a user