You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

55 lines
2.0 KiB

  1. module "network" {
  2. source = "modules/network"
  3. external_net = "${var.external_net}"
  4. network_name = "${var.network_name}"
  5. cluster_name = "${var.cluster_name}"
  6. dns_nameservers = "${var.dns_nameservers}"
  7. }
  8. module "ips" {
  9. source = "modules/ips"
  10. number_of_k8s_masters = "${var.number_of_k8s_masters}"
  11. number_of_k8s_masters_no_etcd = "${var.number_of_k8s_masters_no_etcd}"
  12. number_of_k8s_nodes = "${var.number_of_k8s_nodes}"
  13. floatingip_pool = "${var.floatingip_pool}"
  14. number_of_bastions = "${var.number_of_bastions}"
  15. external_net = "${var.external_net}"
  16. network_name = "${var.network_name}"
  17. router_id = "${module.network.router_id}"
  18. }
  19. module "compute" {
  20. source = "modules/compute"
  21. cluster_name = "${var.cluster_name}"
  22. number_of_k8s_masters = "${var.number_of_k8s_masters}"
  23. number_of_k8s_masters_no_etcd = "${var.number_of_k8s_masters_no_etcd}"
  24. number_of_etcd = "${var.number_of_etcd}"
  25. number_of_k8s_masters_no_floating_ip = "${var.number_of_k8s_masters_no_floating_ip}"
  26. number_of_k8s_masters_no_floating_ip_no_etcd = "${var.number_of_k8s_masters_no_floating_ip_no_etcd}"
  27. number_of_k8s_nodes = "${var.number_of_k8s_nodes}"
  28. number_of_bastions = "${var.number_of_bastions}"
  29. number_of_k8s_nodes_no_floating_ip = "${var.number_of_k8s_nodes_no_floating_ip}"
  30. number_of_gfs_nodes_no_floating_ip = "${var.number_of_gfs_nodes_no_floating_ip}"
  31. gfs_volume_size_in_gb = "${var.gfs_volume_size_in_gb}"
  32. public_key_path = "${var.public_key_path}"
  33. image = "${var.image}"
  34. image_gfs = "${var.image_gfs}"
  35. ssh_user = "${var.ssh_user}"
  36. ssh_user_gfs = "${var.ssh_user_gfs}"
  37. flavor_k8s_master = "${var.flavor_k8s_master}"
  38. flavor_k8s_node = "${var.flavor_k8s_node}"
  39. flavor_etcd = "${var.flavor_etcd}"
  40. flavor_gfs_node = "${var.flavor_gfs_node}"
  41. network_name = "${var.network_name}"
  42. flavor_bastion = "${var.flavor_bastion}"
  43. k8s_master_fips = "${module.ips.k8s_master_fips}"
  44. k8s_node_fips = "${module.ips.k8s_node_fips}"
  45. bastion_fips = "${module.ips.bastion_fips}"
  46. network_id = "${module.network.router_id}"
  47. }