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.

96 lines
1.2 KiB

  1. [all]
  2. {% for instance in vms.results %}
  3. instance-{{ loop.index }} ansible_ssh_host={{instance.stdout}}
  4. {% endfor %}
  5. {% if mode is defined and mode in ["separate", "separate-scale"] %}
  6. [kube-master]
  7. instance-1
  8. [kube-node]
  9. instance-2
  10. [etcd]
  11. instance-3
  12. {% elif mode is defined and mode in ["ha", "ha-scale"] %}
  13. [kube-master]
  14. instance-1
  15. instance-2
  16. [kube-node]
  17. instance-3
  18. [etcd]
  19. instance-1
  20. instance-2
  21. instance-3
  22. {% elif mode == "default" %}
  23. [kube-master]
  24. instance-1
  25. [kube-node]
  26. instance-2
  27. [etcd]
  28. instance-1
  29. {% elif mode == "aio" %}
  30. [kube-master]
  31. instance-1
  32. [kube-node]
  33. instance-1
  34. [etcd]
  35. instance-1
  36. [vault]
  37. instance-1
  38. {% elif mode == "ha-recover" %}
  39. [kube-master]
  40. instance-1
  41. instance-2
  42. [kube-node]
  43. instance-3
  44. [etcd]
  45. instance-3
  46. instance-1
  47. instance-2
  48. [broken_kube-master]
  49. instance-2
  50. [broken_etcd]
  51. instance-2 etcd_member_name=etcd3
  52. {% elif mode == "ha-recover-noquorum" %}
  53. [kube-master]
  54. instance-3
  55. instance-1
  56. instance-2
  57. [kube-node]
  58. instance-3
  59. [etcd]
  60. instance-3
  61. instance-1
  62. instance-2
  63. [broken_kube-master]
  64. instance-1
  65. instance-2
  66. [broken_etcd]
  67. instance-1 etcd_member_name=etcd2
  68. instance-2 etcd_member_name=etcd3
  69. {% endif %}
  70. [k8s-cluster:children]
  71. kube-node
  72. kube-master
  73. calico-rr
  74. [calico-rr]
  75. [fake_hosts]