X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=playbooks%2Froles%2Fbmra-config%2Ftemplates%2Finventory.j2;fp=playbooks%2Froles%2Fbmra-config%2Ftemplates%2Finventory.ini;h=48e953cf23d9f22621d9fd0d46bbeed810679373;hb=7155286ed00a8bce09a948fb54fb4eeb85027e49;hp=7a9c6ab8467c42018d094d53dfde869092d089cf;hpb=d3916f20f0b10da360cc6c38b61e1ee04d6278c5;p=kuberef.git diff --git a/playbooks/roles/bmra-config/templates/inventory.ini b/playbooks/roles/bmra-config/templates/inventory.j2 similarity index 89% rename from playbooks/roles/bmra-config/templates/inventory.ini rename to playbooks/roles/bmra-config/templates/inventory.j2 index 7a9c6ab..48e953c 100644 --- a/playbooks/roles/bmra-config/templates/inventory.ini +++ b/playbooks/roles/bmra-config/templates/inventory.j2 @@ -2,6 +2,7 @@ {% 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 %} +localhost {% for role in ['kube-master', 'etcd', 'kube-node'] %} [{{ role }}] @@ -17,3 +18,6 @@ kube-master kube-node [calico-rr] + +[all:vars] +ansible_python_interpreter=/usr/bin/python3