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
Reference in New Issue
Block a user