diff --git a/contrib/terraform/openstack/kubespray.tf b/contrib/terraform/openstack/kubespray.tf index a64eb224c..e0dbfd02d 100644 --- a/contrib/terraform/openstack/kubespray.tf +++ b/contrib/terraform/openstack/kubespray.tf @@ -1,55 +1,53 @@ - module "network" { source = "modules/network" - external_net = "${var.external_net}" - network_name = "${var.network_name}" - cluster_name = "${var.cluster_name}" + external_net = "${var.external_net}" + network_name = "${var.network_name}" + cluster_name = "${var.cluster_name}" dns_nameservers = "${var.dns_nameservers}" } - module "ips" { source = "modules/ips" - number_of_k8s_masters = "${var.number_of_k8s_masters}" + number_of_k8s_masters = "${var.number_of_k8s_masters}" number_of_k8s_masters_no_etcd = "${var.number_of_k8s_masters_no_etcd}" - number_of_k8s_nodes = "${var.number_of_k8s_nodes}" - floatingip_pool = "${var.floatingip_pool}" - number_of_bastions = "${var.number_of_bastions}" - external_net = "${var.external_net}" - network_name = "${var.network_name}" - router_id = "${module.network.router_id}" + number_of_k8s_nodes = "${var.number_of_k8s_nodes}" + floatingip_pool = "${var.floatingip_pool}" + number_of_bastions = "${var.number_of_bastions}" + external_net = "${var.external_net}" + network_name = "${var.network_name}" + router_id = "${module.network.router_id}" } module "compute" { source = "modules/compute" - cluster_name = "${var.cluster_name}" - number_of_k8s_masters = "${var.number_of_k8s_masters}" - number_of_k8s_masters_no_etcd = "${var.number_of_k8s_masters_no_etcd}" - number_of_etcd = "${var.number_of_etcd}" - number_of_k8s_masters_no_floating_ip = "${var.number_of_k8s_masters_no_floating_ip}" + cluster_name = "${var.cluster_name}" + number_of_k8s_masters = "${var.number_of_k8s_masters}" + number_of_k8s_masters_no_etcd = "${var.number_of_k8s_masters_no_etcd}" + number_of_etcd = "${var.number_of_etcd}" + number_of_k8s_masters_no_floating_ip = "${var.number_of_k8s_masters_no_floating_ip}" number_of_k8s_masters_no_floating_ip_no_etcd = "${var.number_of_k8s_masters_no_floating_ip_no_etcd}" - number_of_k8s_nodes = "${var.number_of_k8s_nodes}" - number_of_bastions = "${var.number_of_bastions}" - number_of_k8s_nodes_no_floating_ip = "${var.number_of_k8s_nodes_no_floating_ip}" - number_of_gfs_nodes_no_floating_ip = "${var.number_of_gfs_nodes_no_floating_ip}" - gfs_volume_size_in_gb = "${var.gfs_volume_size_in_gb}" - public_key_path = "${var.public_key_path}" - image = "${var.image}" - image_gfs = "${var.image_gfs}" - ssh_user = "${var.ssh_user}" - ssh_user_gfs = "${var.ssh_user_gfs}" - flavor_k8s_master = "${var.flavor_k8s_master}" - flavor_k8s_node = "${var.flavor_k8s_node}" - flavor_etcd = "${var.flavor_etcd}" - flavor_gfs_node = "${var.flavor_gfs_node}" - network_name = "${var.network_name}" - flavor_bastion = "${var.flavor_bastion}" - k8s_master_fips = "${module.ips.k8s_master_fips}" - k8s_node_fips = "${module.ips.k8s_node_fips}" - bastion_fips = "${module.ips.bastion_fips}" + number_of_k8s_nodes = "${var.number_of_k8s_nodes}" + number_of_bastions = "${var.number_of_bastions}" + number_of_k8s_nodes_no_floating_ip = "${var.number_of_k8s_nodes_no_floating_ip}" + number_of_gfs_nodes_no_floating_ip = "${var.number_of_gfs_nodes_no_floating_ip}" + gfs_volume_size_in_gb = "${var.gfs_volume_size_in_gb}" + public_key_path = "${var.public_key_path}" + image = "${var.image}" + image_gfs = "${var.image_gfs}" + ssh_user = "${var.ssh_user}" + ssh_user_gfs = "${var.ssh_user_gfs}" + flavor_k8s_master = "${var.flavor_k8s_master}" + flavor_k8s_node = "${var.flavor_k8s_node}" + flavor_etcd = "${var.flavor_etcd}" + flavor_gfs_node = "${var.flavor_gfs_node}" + network_name = "${var.network_name}" + flavor_bastion = "${var.flavor_bastion}" + k8s_master_fips = "${module.ips.k8s_master_fips}" + k8s_node_fips = "${module.ips.k8s_node_fips}" + bastion_fips = "${module.ips.bastion_fips}" network_id = "${module.network.router_id}" } diff --git a/contrib/terraform/openstack/modules/compute/main.tf b/contrib/terraform/openstack/modules/compute/main.tf index 624c39f0d..d352a5adf 100644 --- a/contrib/terraform/openstack/modules/compute/main.tf +++ b/contrib/terraform/openstack/modules/compute/main.tf @@ -1,7 +1,6 @@ +variable user_data { + type = "string" - -variable user_data { - type = "string" default = <