Typo bugfixes

This commit is contained in:
Xan Manning 2021-02-27 19:02:49 +00:00
parent 05242ba232
commit 62b2d7cb36
7 changed files with 13 additions and 6 deletions

View file

@ -14,6 +14,13 @@
--- ---
--> -->
## 2021-02-27, v2.6.1
### Notable changes
- Bugfix: Templating error for single control plane nodes using Etcd.
- Bugfix: a number of typos fixed.
## 2021-02-16, v2.6.0 ## 2021-02-16, v2.6.0
### Notable changes ### Notable changes

View file

@ -1,6 +1,6 @@
--- ---
- name: Ensure cluster token is captured from control node - name: "Ensure cluster token is captured from {{ k3s_control_delegate }}"
ansible.builtin.slurp: ansible.builtin.slurp:
path: "{{ k3s_runtime_config['data-dir'] | default(k3s_data_dir) }}/server/token" path: "{{ k3s_runtime_config['data-dir'] | default(k3s_data_dir) }}/server/token"
register: k3s_slurped_cluster_token register: k3s_slurped_cluster_token

View file

@ -16,7 +16,7 @@
- include_tasks: install-k3s-node.yml - include_tasks: install-k3s-node.yml
when: k3s_build_cluster when: k3s_build_cluster
- name: Ensure k3s control plane is started - name: Ensure k3s initial control plane server is started
ansible.builtin.systemd: ansible.builtin.systemd:
name: k3s name: k3s
state: started state: started

View file

@ -9,7 +9,7 @@
become: "{{ k3s_become_for_directory_creation | ternary(true, false, k3s_become_for_all) }}" become: "{{ k3s_become_for_directory_creation | ternary(true, false, k3s_become_for_all) }}"
# https://rancher.com/docs/k3s/latest/en/advanced/#auto-deploying-manifests # https://rancher.com/docs/k3s/latest/en/advanced/#auto-deploying-manifests
- name: Ensure Auto-Deploying Manifests are copied to controllers - name: Ensure auto-deploying manifests are copied to controllers
ansible.builtin.template: ansible.builtin.template:
src: "{{ item }}" src: "{{ item }}"
dest: "{{ k3s_server_manifests_dir }}/{{ item | basename | replace('.j2','') }}" dest: "{{ k3s_server_manifests_dir }}/{{ item | basename | replace('.j2','') }}"

View file

@ -17,7 +17,7 @@
k3s_primary_control_node: "{{ 'false' if k3s_build_cluster else 'true' }}" k3s_primary_control_node: "{{ 'false' if k3s_build_cluster else 'true' }}"
when: k3s_primary_control_node is not defined when: k3s_primary_control_node is not defined
- name: Ensure k3s control plane port is captures - name: Ensure k3s control plane port is captured
ansible.builtin.set_fact: ansible.builtin.set_fact:
k3s_control_plane_port: "{{ k3s_runtime_config['https-listen-port'] | default(6443) }}" k3s_control_plane_port: "{{ k3s_runtime_config['https-listen-port'] | default(6443) }}"
delegate_to: k3s_primary_control_node delegate_to: k3s_primary_control_node

View file

@ -1,6 +1,6 @@
--- ---
- name: Check that the control plane to is available to accept connections - name: Check that the control plane is available to accept connections
ansible.builtin.wait_for: ansible.builtin.wait_for:
port: "{{ k3s_runtime_config['https-listen-port'] | default('6443') }}" port: "{{ k3s_runtime_config['https-listen-port'] | default('6443') }}"
host: "{{ k3s_runtime_config['bind-address'] | default('127.0.0.1') }}" host: "{{ k3s_runtime_config['bind-address'] | default('127.0.0.1') }}"

View file

@ -28,7 +28,7 @@ ExecStart={{ k3s_install_dir }}/k3s
{% endif %} {% endif %}
{% if k3s_control_node %} {% if k3s_control_node %}
server server
{% if (k3s_etcd_datastore is defined and k3s_etcd_datastore) and (k3s_primary_control_node is not defined or not k3s_primary_control_node) %} {% if (k3s_etcd_datastore is defined and k3s_etcd_datastore) and (k3s_primary_control_node is not defined or not k3s_primary_control_node) and k3s_controller_list | length > 1 %}
--server https://{{ k3s_control_node_address }}:{{ k3s_control_plane_port | default(6443) }} --server https://{{ k3s_control_node_address }}:{{ k3s_control_plane_port | default(6443) }}
--token-file {{ k3s_token_location }} --token-file {{ k3s_token_location }}
{% endif %} {% endif %}