33 lines
580 B
HCL
33 lines
580 B
HCL
terraform {
|
|
required_providers {
|
|
hcloud = {
|
|
source = "hetznercloud/hcloud"
|
|
version = "1.57.0"
|
|
}
|
|
netbox = {
|
|
source = "e-breuninger/netbox"
|
|
version = "5.0.0"
|
|
}
|
|
}
|
|
}
|
|
|
|
variable NETBOX_API_TOKEN {
|
|
type = string
|
|
description = "netbox api token"
|
|
sensitive = true
|
|
}
|
|
|
|
variable hcloud_token {
|
|
type = string
|
|
description = "hetzner cloud api token"
|
|
sensitive = true
|
|
}
|
|
|
|
provider "netbox" {
|
|
server_url = "http://91.98.205.65:8000"
|
|
api_token = var.NETBOX_API_TOKEN
|
|
}
|
|
|
|
provider "hcloud" {
|
|
token = var.hcloud_token
|
|
} |