Files
home-cluster/bootstrap/templates/ansible/inventory/hosts.yaml.j2
T
Devin Buhl 93c9d21581 feat: change jinja block/start delimiters for renovate support (#1163)
* feat: change jinja block/start delimiters for renovate support

Signed-off-by: Devin Buhl <devin@buhl.casa>

* fix: update renovate config an helm repos

Signed-off-by: Devin Buhl <devin@buhl.casa>

---------

Signed-off-by: Devin Buhl <devin@buhl.casa>
2024-01-15 19:31:45 -05:00

28 lines
799 B
YAML

---
kubernetes:
children:
master:
hosts:
#% for item in bootstrap_nodes.master %#
"{% item.name %}":
ansible_user: "{% item.username %}"
#% if item.external_address is defined %#
ansible_host: "{% item.external_address %}"
#% else %#
ansible_host: "{% item.address %}"
#% endif %#
#% endfor %#
#% if bootstrap_nodes.worker | default([]) | length > 0 %#
worker:
hosts:
#% for item in bootstrap_nodes.worker %#
"{% item.name %}":
ansible_user: "{% item.username %}"
#% if item.external_address is defined %#
ansible_host: "{% item.external_address %}"
#% else %#
ansible_host: "{% item.address %}"
#% endif %#
#% endfor %#
#% endif %#