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.

81 lines
3.4 KiB

  1. module "network" {
  2. source = "modules/network"
  3. external_net = "${var.external_net}"
  4. network_name = "${var.network_name}"
  5. subnet_cidr = "${var.subnet_cidr}"
  6. cluster_name = "${var.cluster_name}"
  7. dns_nameservers = "${var.dns_nameservers}"
  8. }
  9. module "ips" {
  10. source = "modules/ips"
  11. number_of_k8s_masters = "${var.number_of_k8s_masters}"
  12. number_of_k8s_masters_no_etcd = "${var.number_of_k8s_masters_no_etcd}"
  13. number_of_k8s_nodes = "${var.number_of_k8s_nodes}"
  14. floatingip_pool = "${var.floatingip_pool}"
  15. number_of_bastions = "${var.number_of_bastions}"
  16. external_net = "${var.external_net}"
  17. network_name = "${var.network_name}"
  18. router_id = "${module.network.router_id}"
  19. }
  20. module "compute" {
  21. source = "modules/compute"
  22. cluster_name = "${var.cluster_name}"
  23. az_list = "${var.az_list}"
  24. number_of_k8s_masters = "${var.number_of_k8s_masters}"
  25. number_of_k8s_masters_no_etcd = "${var.number_of_k8s_masters_no_etcd}"
  26. number_of_etcd = "${var.number_of_etcd}"
  27. number_of_k8s_masters_no_floating_ip = "${var.number_of_k8s_masters_no_floating_ip}"
  28. number_of_k8s_masters_no_floating_ip_no_etcd = "${var.number_of_k8s_masters_no_floating_ip_no_etcd}"
  29. number_of_k8s_nodes = "${var.number_of_k8s_nodes}"
  30. number_of_bastions = "${var.number_of_bastions}"
  31. number_of_k8s_nodes_no_floating_ip = "${var.number_of_k8s_nodes_no_floating_ip}"
  32. number_of_gfs_nodes_no_floating_ip = "${var.number_of_gfs_nodes_no_floating_ip}"
  33. gfs_volume_size_in_gb = "${var.gfs_volume_size_in_gb}"
  34. public_key_path = "${var.public_key_path}"
  35. image = "${var.image}"
  36. image_gfs = "${var.image_gfs}"
  37. ssh_user = "${var.ssh_user}"
  38. ssh_user_gfs = "${var.ssh_user_gfs}"
  39. flavor_k8s_master = "${var.flavor_k8s_master}"
  40. flavor_k8s_node = "${var.flavor_k8s_node}"
  41. flavor_etcd = "${var.flavor_etcd}"
  42. flavor_gfs_node = "${var.flavor_gfs_node}"
  43. network_name = "${var.network_name}"
  44. flavor_bastion = "${var.flavor_bastion}"
  45. k8s_master_fips = "${module.ips.k8s_master_fips}"
  46. k8s_node_fips = "${module.ips.k8s_node_fips}"
  47. bastion_fips = "${module.ips.bastion_fips}"
  48. supplementary_master_groups = "${var.supplementary_master_groups}"
  49. supplementary_node_groups = "${var.supplementary_node_groups}"
  50. network_id = "${module.network.router_id}"
  51. }
  52. output "private_subnet_id" {
  53. value = "${module.network.subnet_id}"
  54. }
  55. output "floating_network_id" {
  56. value = "${var.external_net}"
  57. }
  58. output "router_id" {
  59. value = "${module.network.router_id}"
  60. }
  61. output "k8s_master_fips" {
  62. value = "${module.ips.k8s_master_fips}"
  63. }
  64. output "k8s_node_fips" {
  65. value = "${module.ips.k8s_node_fips}"
  66. }
  67. output "bastion_fips" {
  68. value = "${module.ips.bastion_fips}"
  69. }