Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
kaiyou
ansible
Commits
ac7289eb
Commit
ac7289eb
authored
May 21, 2020
by
kaiyou
Browse files
Make wesher rejoin automatically
parent
99aa7d7b
Changes
2
Hide whitespace changes
Inline
Side-by-side
roles/wesher/defaults/main.yml
View file @
ac7289eb
...
...
@@ -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']
}}"
roles/wesher/templates/config.j2
View file @
ac7289eb
...
...
@@ -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 %}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment