Aggiornati i nomi delle variabili per separare labs e s2i2s.
This commit is contained in:
parent
8f102a9d9e
commit
54038932c0
|
|
@ -87,3 +87,4 @@ output "flavor_list" {
|
||||||
output "default_security_group_name" {
|
output "default_security_group_name" {
|
||||||
value = var.default_security_group_name
|
value = var.default_security_group_name
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -13,10 +13,10 @@ resource "openstack_networking_network_v2" "main-private-network" {
|
||||||
external = "false"
|
external = "false"
|
||||||
description = var.main_private_network.description
|
description = var.main_private_network.description
|
||||||
dns_domain = var.dns_zone.zone_name
|
dns_domain = var.dns_zone.zone_name
|
||||||
mtu = module.common_variables.mtu_size
|
mtu = module.labs_common_variables.mtu_size
|
||||||
port_security_enabled = true
|
port_security_enabled = true
|
||||||
shared = false
|
shared = false
|
||||||
region = module.common_variables.main_region
|
region = module.labs_common_variables.main_region
|
||||||
tenant_id = var.os_project_data.id
|
tenant_id = var.os_project_data.id
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -26,7 +26,7 @@ resource "openstack_networking_subnet_v2" "main-private-subnet" {
|
||||||
network_id = openstack_networking_network_v2.main-private-network.id
|
network_id = openstack_networking_network_v2.main-private-network.id
|
||||||
cidr = var.main_private_subnet.cidr
|
cidr = var.main_private_subnet.cidr
|
||||||
gateway_ip = var.main_private_subnet.gateway_ip
|
gateway_ip = var.main_private_subnet.gateway_ip
|
||||||
dns_nameservers = module.common_variables.resolvers_ip
|
dns_nameservers = module.labs_common_variables.resolvers_ip
|
||||||
ip_version = 4
|
ip_version = 4
|
||||||
enable_dhcp = true
|
enable_dhcp = true
|
||||||
tenant_id = var.os_project_data.id
|
tenant_id = var.os_project_data.id
|
||||||
|
|
@ -37,9 +37,9 @@ resource "openstack_networking_subnet_v2" "main-private-subnet" {
|
||||||
}
|
}
|
||||||
|
|
||||||
resource "openstack_networking_router_v2" "external-router" {
|
resource "openstack_networking_router_v2" "external-router" {
|
||||||
name = module.common_variables.external_router.name
|
name = var.external_router.name
|
||||||
description = var.external_router.description
|
description = var.external_router.description
|
||||||
external_network_id = module.common_variables.external_network.id
|
external_network_id = module.labs_common_variables.external_network.id
|
||||||
tenant_id = var.os_project_data.id
|
tenant_id = var.os_project_data.id
|
||||||
enable_snat = true
|
enable_snat = true
|
||||||
vendor_options {
|
vendor_options {
|
||||||
|
|
@ -57,7 +57,7 @@ resource "openstack_networking_router_interface_v2" "private-network-routing" {
|
||||||
#
|
#
|
||||||
# This is the security group that should be added to every instance
|
# This is the security group that should be added to every instance
|
||||||
resource "openstack_networking_secgroup_v2" "default" {
|
resource "openstack_networking_secgroup_v2" "default" {
|
||||||
name = var.default_security_group_name
|
name = module.labs_common_variables.default_security_group_name
|
||||||
delete_default_rules = "true"
|
delete_default_rules = "true"
|
||||||
description = "Default security group with rules that allow ssh access from the ISTI networks, http, https"
|
description = "Default security group with rules that allow ssh access from the ISTI networks, http, https"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ module "ssh_settings" {
|
||||||
}
|
}
|
||||||
|
|
||||||
# Module used
|
# Module used
|
||||||
module "common_variables" {
|
module "labs_common_variables" {
|
||||||
source = "../../modules/common_variables"
|
source = "../../modules/labs_common_variables"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -54,7 +54,7 @@ variable "default_firewall_rules_map" {
|
||||||
default = {
|
default = {
|
||||||
"ssh_from_isti_net" = {
|
"ssh_from_isti_net" = {
|
||||||
description = "SSH from the ISTI network"
|
description = "SSH from the ISTI network"
|
||||||
source = module.labs_common_variables.ssh_sources.isti_net_cidr
|
source = "146.48.80.0/21"
|
||||||
port_min = 22
|
port_min = 22
|
||||||
port_max = 22
|
port_max = 22
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue