kubespray/contrib/dind/roles/dind-host/templates/inventory_builder.sh.j2

4 lines
215 B
Django/Jinja

#!/bin/bash
# NOTE: if you change HOST_PREFIX, you also need to edit ./hosts [containers] section
HOST_PREFIX=kube-node python3 contrib/inventory_builder/inventory.py {% for ip in addresses %} {{ ip }} {% endfor %}