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.

48 lines
976 B

  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. {% else %}
  26. [kube-master]
  27. {{droplets.results[0].droplet.name}}
  28. [kube-node]
  29. {{droplets.results[1].droplet.name}}
  30. [etcd]
  31. {{droplets.results[0].droplet.name}}
  32. [vault]
  33. {{droplets.results[0].droplet.name}}
  34. {% endif %}
  35. [k8s-cluster:children]
  36. kube-node
  37. kube-master