11 lines
302 B
Django/Jinja
11 lines
302 B
Django/Jinja
{% if inventory_hostname == groups[k3s_cluster_group][0]%}
|
|
cluster-init: true
|
|
{% else %}
|
|
server: https://{{ k3s_control_plane_endpoint }}:6443
|
|
{% endif %}
|
|
token-file: {{ k3s_token_file }}
|
|
{% if k3s_cluster_group in group_names %}
|
|
{{ k3s_server_config | to_nice_yaml }}
|
|
{% endif %}
|
|
snapshotter: stargz
|