360aff4a57
* rename ansible groups to use _ instead of - k8s-cluster -> k8s_cluster k8s-node -> k8s_node calico-rr -> calico_rr no-floating -> no_floating Note: kube-node,k8s-cluster groups in upgrade CI need clean-up after v2.16 is tagged * ensure old groups are mapped to the new ones
34 lines
817 B
Django/Jinja
34 lines
817 B
Django/Jinja
|
|
{% for vm in vm_ip_list %}
|
|
{% if not use_bastion or vm.virtualMachine.name == 'bastion' %}
|
|
{{ vm.virtualMachine.name }} ansible_ssh_host={{ vm.virtualMachine.network.publicIpAddresses[0].ipAddress }} ip={{ vm.virtualMachine.network.privateIpAddresses[0] }}
|
|
{% else %}
|
|
{{ vm.virtualMachine.name }} ansible_ssh_host={{ vm.virtualMachine.network.privateIpAddresses[0] }}
|
|
{% endif %}
|
|
{% endfor %}
|
|
|
|
[kube_control_plane]
|
|
{% for vm in vm_roles_list %}
|
|
{% if 'kube_control_plane' in vm.tags.roles %}
|
|
{{ vm.name }}
|
|
{% endif %}
|
|
{% endfor %}
|
|
|
|
[etcd]
|
|
{% for vm in vm_roles_list %}
|
|
{% if 'etcd' in vm.tags.roles %}
|
|
{{ vm.name }}
|
|
{% endif %}
|
|
{% endfor %}
|
|
|
|
[kube_node]
|
|
{% for vm in vm_roles_list %}
|
|
{% if 'kube_node' in vm.tags.roles %}
|
|
{{ vm.name }}
|
|
{% endif %}
|
|
{% endfor %}
|
|
|
|
[k8s_cluster:children]
|
|
kube_node
|
|
kube_control_plane
|
|
|