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.

57 lines
1.1 KiB

  1. {% for instance in droplets.results %}
  2. {{instance.droplet.name}} ansible_ssh_host={{instance.droplet.ip_address}}
  3. {% endfor %}
  4. {% if mode is defined and mode == "separate" %}
  5. [kube-master]
  6. {{droplets.results[0].droplet.name}}
  7. [kube-node]
  8. {{droplets.results[1].droplet.name}}
  9. [etcd]
  10. {{droplets.results[2].droplet.name}}
  11. [vault]
  12. {{droplets.results[2].droplet.name}}
  13. {% elif mode is defined and mode == "ha" %}
  14. [kube-master]
  15. {{droplets.results[0].droplet.name}}
  16. {{droplets.results[1].droplet.name}}
  17. [kube-node]
  18. {{droplets.results[2].droplet.name}}
  19. [etcd]
  20. {{droplets.results[1].droplet.name}}
  21. {{droplets.results[2].droplet.name}}
  22. [vault]
  23. {{droplets.results[1].droplet.name}}
  24. {{droplets.results[2].droplet.name}}
  25. [broken_kube-master]
  26. {{droplets.results[1].droplet.name}}
  27. [broken_etcd]
  28. {{droplets.results[2].droplet.name}}
  29. {% else %}
  30. [kube-master]
  31. {{droplets.results[0].droplet.name}}
  32. [kube-node]
  33. {{droplets.results[1].droplet.name}}
  34. [etcd]
  35. {{droplets.results[0].droplet.name}}
  36. [vault]
  37. {{droplets.results[0].droplet.name}}
  38. {% endif %}
  39. [calico-rr]
  40. [k8s-cluster:children]
  41. kube-node
  42. kube-master
  43. calico-rr