Commit ac7289eb authored by kaiyou's avatar kaiyou
Browse files

Make wesher rejoin automatically

parent 99aa7d7b
......@@ -14,6 +14,7 @@ wesher_bind: "{{ ansible_facts['default_ipv6']['address'] }}"
wesher_port: 7000
wesher_iface: wg-{{ cluster_slug }}
wesher_subnet: 10.24.0.0/16
wesher_rejoin: 60
# populated for other roles
wesher_address: "{{ ansible_facts['wg_' + cluster_slug]['ipv4']['address'] }}"
......@@ -5,7 +5,7 @@ WESHER_OVERLAY_NET={{ wesher_subnet }}
WESHER_ROUTED_NET={{ k3s_cluster_cidr }}
WESHER_INTERFACE={{ wesher_iface }}
WESHER_BIND_ADDR={{ wesher_bind }}
WESHER_STATE_PATH={{ var_dir }}/wesher.json
{% if ansible_hostname not in groups['master'] %}
WESHER_JOIN={{ wesher_master }}
WESHER_REJOIN={{ wesher_rejoin }}
{% endif %}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment