summaryrefslogtreecommitdiffstats
path: root/playbooks/roles/bmra-config/templates/inventory.ini
blob: 7a9c6ab8467c42018d094d53dfde869092d089cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
[all]
{% for node in nodes %}
{{ idf.kubespray.hostnames[node.name] }}   ansible_host={{ node.interfaces[idf.net_config[engine.pxe_network].interface].address }} ip={{ node.interfaces[idf.net_config[engine.pxe_network].interface].address }}
{% endfor %}

{% for role in ['kube-master', 'etcd', 'kube-node'] %}
[{{ role }}]
{% for node in nodes %}
{% if role in idf.kubespray.nodes_roles[node.name] %}
{{ idf.kubespray.hostnames[node.name] }}
{% endif %}
{% endfor %}
{% endfor %}

[k8s-cluster:children]
kube-master
kube-node

[calico-rr]