Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated systemd template to use token when joining a cluster #138

Merged
merged 2 commits into from
Jul 24, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix primary control node delegation
  • Loading branch information
xanmanning committed Jul 24, 2021
commit ba113bcd0574b72152ea169fe33fd6da180c8952
5 changes: 2 additions & 3 deletions tasks/build/preconfigure-k3s.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@

- name: Ensure k3s control node fact is set
ansible.builtin.set_fact:
k3s_control_node: "{{ false if k3s_build_cluster else true }}"
k3s_control_node: "{{ not k3s_build_cluster }}"
when: k3s_control_node is not defined

- name: Ensure k3s primary control node fact is set
ansible.builtin.set_fact:
k3s_primary_control_node: "{{ false if k3s_build_cluster else true }}"
k3s_primary_control_node: "{{ not k3s_build_cluster }}"
when: k3s_primary_control_node is not defined

- name: Ensure k3s control plane port is captured
Expand Down Expand Up @@ -56,7 +56,6 @@
k3s_primary_control_node: true
when:
- k3s_controller_list is defined
- k3s_controller_list | length > 1
- inventory_hostname == k3s_controller_list[0]
- k3s_build_cluster is defined
- k3s_build_cluster
Expand Down