fix: derive k3s node IPs from terraform private addresses
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
[control_plane]
|
||||
{% for ip in control_plane_ips %}
|
||||
{{ ip }}
|
||||
{% for node in control_planes %}
|
||||
{{ node.name }} ansible_host={{ node.public_ip }} k3s_private_ip={{ node.private_ip }}
|
||||
{% endfor %}
|
||||
|
||||
[workers]
|
||||
{% for ip in worker_ips %}
|
||||
{{ ip }}
|
||||
{% for node in workers %}
|
||||
{{ node.name }} ansible_host={{ node.public_ip }} k3s_private_ip={{ node.private_ip }}
|
||||
{% endfor %}
|
||||
|
||||
[cluster:children]
|
||||
|
||||
Reference in New Issue
Block a user