Add initial Terraform module structure for firewall and network
Some checks failed
Terraform Plan / plan (push) Failing after 0s
Some checks failed
Terraform Plan / plan (push) Failing after 0s
- Created main.tf, output.tf, and variables.tf for the firewall module. - Created main.tf, output.tf, and variables.tf for the network module. - Added provider configuration for Hetzner Cloud and NetBox in provider.tf. - Defined sensitive variables for Hetzner API token, NetBox URL, and NetBox API token in variables.tf.
This commit is contained in:
21
terraform/provider.tf
Normal file
21
terraform/provider.tf
Normal file
@@ -0,0 +1,21 @@
|
||||
terraform {
|
||||
required_providers {
|
||||
hcloud = {
|
||||
source = "hetznercloud/hcloud"
|
||||
version = "1.57.0"
|
||||
}
|
||||
netbox = {
|
||||
source = "e-breuninger/netbox"
|
||||
version = "5.0.0"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
provider "hcloud" {
|
||||
token = var.hetzner_api_token
|
||||
}
|
||||
|
||||
provider "netbox" {
|
||||
server_url = var.netbox_url
|
||||
api_token = var.netbox_api_token
|
||||
}
|
||||
Reference in New Issue
Block a user