This commit is contained in:
0
terraform/modules/dns/main.tf
Normal file
0
terraform/modules/dns/main.tf
Normal file
0
terraform/modules/dns/output.tf
Normal file
0
terraform/modules/dns/output.tf
Normal file
0
terraform/modules/dns/variables.tf
Normal file
0
terraform/modules/dns/variables.tf
Normal file
@@ -13,6 +13,9 @@ terraform {
|
||||
|
||||
resource "hcloud_firewall" "prod-fw" {
|
||||
name = "prod-fw"
|
||||
labels = {
|
||||
environment = "production"
|
||||
}
|
||||
rule {
|
||||
direction = "in"
|
||||
protocol = "tcp"
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
terraform {
|
||||
required_providers {
|
||||
hcloud = {
|
||||
source = "hetznercloud/hcloud"
|
||||
version = "1.57.0"
|
||||
}
|
||||
netbox = {
|
||||
source = "e-breuninger/netbox"
|
||||
version = "5.0.0"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
resource "hcloud_network" "privnet" {
|
||||
name = "privnet"
|
||||
ip_range = "10.0.0.0/8"
|
||||
labels = {
|
||||
environment = "production"
|
||||
}
|
||||
}
|
||||
resource "hcloud_network_subnet" "privsubnet" {
|
||||
network_id = hcloud_network.privnet.id
|
||||
type = "cloud"
|
||||
network_zone = "eu-central"
|
||||
ip_range = "10.0.1.0/24"
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user