This commit is contained in:
33
terraform/modules/netbox/regions/main.tf
Normal file
33
terraform/modules/netbox/regions/main.tf
Normal file
@@ -0,0 +1,33 @@
|
||||
terraform {
|
||||
required_providers {
|
||||
hcloud = {
|
||||
source = "hetznercloud/hcloud"
|
||||
version = "1.57.0"
|
||||
}
|
||||
netbox = {
|
||||
source = "e-breuninger/netbox"
|
||||
version = "5.0.0"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
resource "netbox_region" "europe" {
|
||||
name = "Europe"
|
||||
}
|
||||
|
||||
resource "netbox_region" "northamerica" {
|
||||
name = "North America"
|
||||
}
|
||||
|
||||
resource "netbox_region" "asia" {
|
||||
name = "Asia"
|
||||
}
|
||||
|
||||
resource "netbox_region" "germany" {
|
||||
name = "Germany"
|
||||
parent_region_id = resource.netbox_region.europe.id
|
||||
}
|
||||
resource "netbox_region" "bavaria" {
|
||||
name = "Bavaria"
|
||||
parent_region_id = resource.netbox_region.germany.id
|
||||
}
|
||||
0
terraform/modules/netbox/regions/output.tf
Normal file
0
terraform/modules/netbox/regions/output.tf
Normal file
48
terraform/modules/netbox/sites/main.tf
Normal file
48
terraform/modules/netbox/sites/main.tf
Normal file
@@ -0,0 +1,48 @@
|
||||
terraform {
|
||||
required_providers {
|
||||
hcloud = {
|
||||
source = "hetznercloud/hcloud"
|
||||
version = "1.57.0"
|
||||
}
|
||||
netbox = {
|
||||
source = "e-breuninger/netbox"
|
||||
version = "5.0.0"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
resource "netbox_site" "fsn1" {
|
||||
name = "fsn1"
|
||||
facility = "DE Falkenstein"
|
||||
timezone = "Europe/Berlin"
|
||||
}
|
||||
|
||||
resource "netbox_site" "nbg1" {
|
||||
name = "nbg1"
|
||||
facility = "DE Nuremberg"
|
||||
timezone = "Europe/Berlin"
|
||||
}
|
||||
|
||||
resource "netbox_site" "hel1" {
|
||||
name = "hel1"
|
||||
facility = "FI Helsinki"
|
||||
timezone = "Europe/Helsinki"
|
||||
}
|
||||
|
||||
resource "netbox_site" "ash" {
|
||||
name = "ash"
|
||||
facility = "US Ashburn, VA"
|
||||
timezone = "America/New_York"
|
||||
}
|
||||
|
||||
resource "netbox_site" "hil" {
|
||||
name = "hil"
|
||||
facility = "US Hillsboro, OR"
|
||||
timezone = "America/Los_Angeles"
|
||||
}
|
||||
|
||||
resource "netbox_site" "sin" {
|
||||
name = "sin"
|
||||
facility = "SG Singapore"
|
||||
timezone = "Asia/Singapore"
|
||||
}
|
||||
0
terraform/modules/netbox/sites/output.tf
Normal file
0
terraform/modules/netbox/sites/output.tf
Normal file
Reference in New Issue
Block a user