With this change we no longer use user-data scripts on the provided machines. That makes it way easier for me to handle all the configuration, since I only have to run ansible. Furthermore this the burdon to think what may went wrong, since ansible is easier to debug than some arbitrary scripts which run at provisioning-time on the machines. With this change I should also think about restructuring the code a bit as well. Since it's actually easier to provide the initial software-stack for the cluster via ansible than via terraform, at least as far as I can tell right now.
18 lines
214 B
Plaintext
18 lines
214 B
Plaintext
[server]
|
|
%{for ip in server_ips~}
|
|
${ip}
|
|
%{endfor~}
|
|
|
|
[agent]
|
|
%{for ip in agent_ips~}
|
|
${ip}
|
|
%{endfor~}
|
|
|
|
[k3s_cluster:children]
|
|
server
|
|
agent
|
|
|
|
[k3s_cluster:vars]
|
|
network_cidr=${network_cidr}
|
|
private_nat=${private_nat}
|