remove networks - change docu
This commit is contained in:
parent
8e021bcb3f
commit
4f966c4c9f
3 changed files with 1 additions and 44 deletions
|
|
@ -15,20 +15,6 @@ resource "stackit_network" "lan_network1" {
|
|||
routed = true
|
||||
}
|
||||
|
||||
resource "stackit_network" "lan_network2" {
|
||||
project_id = module.project.project_info["project1"].project_id
|
||||
name = "lan_network2"
|
||||
ipv4_prefix = "10.220.2.0/24"
|
||||
routed = true
|
||||
}
|
||||
|
||||
resource "stackit_network" "lan_network3" {
|
||||
project_id = module.project.project_info["project1"].project_id
|
||||
name = "lan_network3"
|
||||
ipv4_prefix = "10.220.3.0/24"
|
||||
routed = false
|
||||
}
|
||||
|
||||
resource "stackit_network_interface" "wan" {
|
||||
project_id = module.project.project_info["project1"].project_id
|
||||
network_id = stackit_network.wan_network.network_id
|
||||
|
|
@ -45,20 +31,6 @@ resource "stackit_network_interface" "lan1" {
|
|||
name = "LAN1"
|
||||
}
|
||||
|
||||
resource "stackit_network_interface" "lan2" {
|
||||
project_id = module.project.project_info["project1"].project_id
|
||||
network_id = stackit_network.lan_network2.network_id
|
||||
security = false
|
||||
name = "LAN2"
|
||||
}
|
||||
|
||||
resource "stackit_network_interface" "lan3" {
|
||||
project_id = module.project.project_info["project1"].project_id
|
||||
network_id = stackit_network.lan_network3.network_id
|
||||
security = false
|
||||
name = "LAN3"
|
||||
}
|
||||
|
||||
# ---------- project 2 core ------------------
|
||||
// This file defines the network setup for the second project (core).
|
||||
|
||||
|
|
|
|||
|
|
@ -7,16 +7,3 @@ resource "stackit_server_network_interface_attach" "nic-attachment-lan1" {
|
|||
depends_on = [ stackit_server.pfsense_appliance ]
|
||||
}
|
||||
|
||||
resource "stackit_server_network_interface_attach" "nic-attachment-lan2" {
|
||||
project_id = module.project.project_info["project1"].project_id
|
||||
server_id = stackit_server.pfsense_appliance.server_id
|
||||
network_interface_id = stackit_network_interface.lan2.network_interface_id
|
||||
depends_on = [ stackit_server_network_interface_attach.nic-attachment-lan1]
|
||||
}
|
||||
|
||||
resource "stackit_server_network_interface_attach" "nic-attachment-lan3" {
|
||||
project_id = module.project.project_info["project1"].project_id
|
||||
server_id = stackit_server.pfsense_appliance.server_id
|
||||
network_interface_id = stackit_network_interface.lan3.network_interface_id
|
||||
depends_on = [ stackit_server_network_interface_attach.nic-attachment-lan2]
|
||||
}
|
||||
|
|
|
|||
|
|
@ -12,8 +12,6 @@ This repository contains Terraform code to deploy the following infrastructure p
|
|||
- Configures **WAN and multiple LAN networks**:
|
||||
- `wan_network`: `10.220.0.0/24`
|
||||
- `lan_network1`: `10.220.1.0/24`
|
||||
- `lan_network2`: `10.220.2.0/24`
|
||||
- `lan_network3`: `10.220.3.0/24` (non-routed)
|
||||
- Interfaces:
|
||||
- WAN interface with static IP `10.220.0.254`
|
||||
- LAN1–3 interfaces, each connected to corresponding networks
|
||||
|
|
@ -22,7 +20,7 @@ This repository contains Terraform code to deploy the following infrastructure p
|
|||
- Deploys a single **Virtual Machine** (VM) for core services or testing purposes.
|
||||
- Network setup includes:
|
||||
- `p2_lan_network`: `10.220.5.0/24` (routed)
|
||||
- `p2_wan_network`: `10.220.6.0/24` (routed)
|
||||
- `p2_wan_network`: `10.220.6.0/24` (routed) - optional
|
||||
- Interfaces:
|
||||
- LAN interface with attached security group
|
||||
- WAN interface without additional security
|
||||
|
|
|
|||
Loading…
Reference in a new issue