Merge pull request #2900 from drekle/configure_openstack_subnet_CIDR

Configure openstack subnet cidr
This commit is contained in:
Rong Zhang
2018-08-07 17:27:01 +08:00
committed by GitHub
5 changed files with 11 additions and 1 deletions

View File

@@ -12,7 +12,7 @@ resource "openstack_networking_network_v2" "k8s" {
resource "openstack_networking_subnet_v2" "k8s" {
name = "${var.cluster_name}-internal-network"
network_id = "${openstack_networking_network_v2.k8s.id}"
cidr = "10.0.0.0/24"
cidr = "${var.subnet_cidr}"
ip_version = 4
dns_nameservers = "${var.dns_nameservers}"
}

View File

@@ -7,3 +7,5 @@ variable "cluster_name" {}
variable "dns_nameservers" {
type = "list"
}
variable "subnet_cidr" {}