mirror of
https://github.com/PyratLabs/ansible-role-k3s.git
synced 2024-11-26 12:27:28 +01:00
Bugfix: minimum version for secrets encryption reverted
This commit is contained in:
parent
b42ffade29
commit
02e12e61a8
@ -4,6 +4,7 @@
|
||||
become: true
|
||||
vars:
|
||||
molecule_is_test: true
|
||||
k3s_release_version: v1.18.2+k3s1
|
||||
k3s_dqlite_datastore: true
|
||||
k3s_secrets_encryption: true
|
||||
k3s_use_experimental: true
|
||||
|
@ -8,4 +8,4 @@
|
||||
success_msg: "k3s_cluster_state is valid."
|
||||
when: k3s_cluster_state is defined
|
||||
|
||||
- import_tasks: state-{{ (k3s_cluster_state | lower) | default('installed') }}.yml
|
||||
- include_tasks: state-{{ (k3s_cluster_state | lower) | default('installed') }}.yml
|
||||
|
@ -1,5 +1,7 @@
|
||||
---
|
||||
|
||||
- import_tasks: validate/check-environment.yml
|
||||
|
||||
- import_tasks: build/preconfigure-k3s.yml
|
||||
|
||||
- import_tasks: build/get-version.yml
|
||||
|
6
tasks/validate/check-environment.yml
Normal file
6
tasks/validate/check-environment.yml
Normal file
@ -0,0 +1,6 @@
|
||||
---
|
||||
|
||||
- name: Check to see if jmespath is installed
|
||||
command: echo "{{ (hostvars | json_query('*.k3s_control_node')) }}"
|
||||
register: k3s_check_jmespath
|
||||
changed_when: false
|
@ -137,7 +137,7 @@
|
||||
- name: Check k3s_flannel_backend 'host-gw' configuration against k3s version
|
||||
assert:
|
||||
that:
|
||||
- (k3s_release_version | replace('v', '')) is version_compare('1.16.9', '>=')
|
||||
- (k3s_release_version | replace('v', '')) is version_compare('1.17.2', '>=')
|
||||
success_msg: "host-gw flannel backend supported in {{ k3s_release_version }}"
|
||||
fail_msg: "host-gw flannel backend is not supported in {{ k3s_release_version }}"
|
||||
when: k3s_flannel_backend is defined and k3s_flannel_backend == 'host-gw'
|
||||
@ -217,7 +217,7 @@
|
||||
- name: Check k3s_secrets_encryption against k3s version
|
||||
assert:
|
||||
that:
|
||||
- (k3s_release_version | replace('v', '')) is version_compare('1.16.9', '>=')
|
||||
- (k3s_release_version | replace('v', '')) is version_compare('1.17.4', '>=')
|
||||
success_msg: "Secrets encryption at rest supported in {{ k3s_release_version }}"
|
||||
fail_msg: "Secrets encryption at rest is not supported in {{ k3s_release_version }}"
|
||||
when: k3s_secrets_encryption is defined and k3s_secrets_encryption
|
||||
|
Loading…
Reference in New Issue
Block a user