aboutsummaryrefslogtreecommitdiffstats
path: root/deploy/adapters/ansible/kubernetes/roles/kargo/templates/inventory.j2
blob: 0120ae18349ba47cb7a710011c8ec70de929f168 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
[all]
{% for host, vales in hostvars.iteritems() %}
{{ host }} ansible_ssh_host={{ vales['ansible_ssh_host'] }} ansible_ssh_pass=root  ansible_user=root
{% endfor %}

[kube-master]
{% for host in hostvars[inventory_hostname]['groups']['kube_master'] %}
{{ host }}
{% endfor %}

[etcd]
{% for host in hostvars[inventory_hostname]['groups']['etcd'] %}
{{ host }}
{% endfor %}

[kube-node]
{% for host in hostvars[inventory_hostname]['groups']['kube_node'] %}
{{ host }}
{% endfor %}

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

[calico-rr]
[vault]