Working vpc with two member instances, unique IPs
This commit is contained in:
1 parent
784819ef34
commit
fc5546c86f
3 files changed
+7
-1
No files matched your search
@@ -21,6 +21,7 @@ module "ci_cd" {
|
|||||||
label = "ci-cd"
|
label = "ci-cd"
|
||||||
root_pass = var.root_pass
|
root_pass = var.root_pass
|
||||||
vpc_subnet_id = module.main_vpc_subnet.vpc_subnet_id
|
vpc_subnet_id = module.main_vpc_subnet.vpc_subnet_id
|
||||||
|
vpc_ipv4_addr = "10.0.10.2"
|
||||||
}
|
}
|
||||||
|
|
||||||
module "observability" {
|
module "observability" {
|
||||||
@@ -28,4 +29,5 @@ module "observability" {
|
|||||||
label = "observability"
|
label = "observability"
|
||||||
root_pass = var.root_pass
|
root_pass = var.root_pass
|
||||||
vpc_subnet_id = module.main_vpc_subnet.vpc_subnet_id
|
vpc_subnet_id = module.main_vpc_subnet.vpc_subnet_id
|
||||||
|
vpc_ipv4_addr = "10.0.10.3"
|
||||||
}
|
}
|
||||||
@@ -14,7 +14,7 @@ resource "linode_instance" "eqit_instance" {
|
|||||||
purpose = "vpc"
|
purpose = "vpc"
|
||||||
subnet_id = var.vpc_subnet_id
|
subnet_id = var.vpc_subnet_id
|
||||||
ipv4 {
|
ipv4 {
|
||||||
vpc = "10.0.10.2"
|
vpc = var.vpc_ipv4_addr
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -7,6 +7,10 @@ variable "vpc_subnet_id" {
|
|||||||
description = "Linode VPC Subnet ID"
|
description = "Linode VPC Subnet ID"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
variable "vpc_ipv4_addr" {
|
||||||
|
description = "Linode VPC ipv4 address"
|
||||||
|
}
|
||||||
|
|
||||||
## Optional Variables
|
## Optional Variables
|
||||||
variable "image" {
|
variable "image" {
|
||||||
description = "Image to use for Linode instance"
|
description = "Image to use for Linode instance"
|
||||||
|
|||||||
Reference in new issue
Block a user