chore: add ci tests for k0s (#1152)
This commit is contained in:
1 parent
15ffff895c
commit
ef44ea1b2b
19 files changed
+128
-7
No files matched your search
@@ -11,6 +11,8 @@
|
||||
state: directory
|
||||
mode: "0755"
|
||||
with_community.general.filetree: ["../templates/addons/{{ addon_name }}/"]
|
||||
loop_control:
|
||||
label: "{{ item.path }}"
|
||||
|
||||
- name: Template unencrypted files for {{ addon_namespace }}/{{ addon_name }}
|
||||
when: item.state == 'file' and 'sops' not in item.path
|
||||
@@ -19,6 +21,8 @@
|
||||
dest: "{{ repository_path }}/kubernetes/apps/{{ addon_namespace }}/{{ addon_name }}/{{ item.path | replace('.j2', '') }}"
|
||||
mode: "0644"
|
||||
with_community.general.filetree: ["../templates/addons/{{ addon_name }}/"]
|
||||
loop_control:
|
||||
label: "{{ item.path }}"
|
||||
|
||||
- name: Template encrypted files for {{ addon_namespace }}/{{ addon_name }}
|
||||
block:
|
||||
@@ -32,3 +36,5 @@
|
||||
mode: "0644"
|
||||
force: true
|
||||
with_community.general.filetree: ["../templates/addons/{{ addon_name }}/"]
|
||||
loop_control:
|
||||
label: "{{ item.path }}"
|
||||
@@ -11,6 +11,8 @@
|
||||
state: directory
|
||||
mode: "0755"
|
||||
with_community.general.filetree: ["../templates/addons/{{ addon_name }}/"]
|
||||
loop_control:
|
||||
label: "{{ item.path }}"
|
||||
|
||||
- name: Template unencrypted files for {{ addon_namespace }}/{{ addon_name }}
|
||||
when: item.state == 'file' and 'sops' not in item.path
|
||||
@@ -19,6 +21,8 @@
|
||||
dest: "{{ repository_path }}/kubernetes/apps/{{ addon_namespace }}/{{ addon_name }}/{{ item.path | replace('.j2', '') }}"
|
||||
mode: "0644"
|
||||
with_community.general.filetree: ["../templates/addons/{{ addon_name }}/"]
|
||||
loop_control:
|
||||
label: "{{ item.path }}"
|
||||
|
||||
- name: Template encrypted files for {{ addon_namespace }}/{{ addon_name }}
|
||||
block:
|
||||
@@ -32,3 +36,5 @@
|
||||
mode: "0644"
|
||||
force: true
|
||||
with_community.general.filetree: ["../templates/addons/{{ addon_name }}/"]
|
||||
loop_control:
|
||||
label: "{{ item.path }}"
|
||||
@@ -11,6 +11,8 @@
|
||||
state: directory
|
||||
mode: "0755"
|
||||
with_community.general.filetree: ["../templates/addons/{{ addon_name }}/"]
|
||||
loop_control:
|
||||
label: "{{ item.path }}"
|
||||
|
||||
- name: Template unencrypted files for {{ addon_namespace }}/{{ addon_name }}
|
||||
when: item.state == 'file' and 'sops' not in item.path
|
||||
@@ -19,6 +21,8 @@
|
||||
dest: "{{ repository_path }}/kubernetes/apps/{{ addon_namespace }}/{{ addon_name }}/{{ item.path | replace('.j2', '') }}"
|
||||
mode: "0644"
|
||||
with_community.general.filetree: ["../templates/addons/{{ addon_name }}/"]
|
||||
loop_control:
|
||||
label: "{{ item.path }}"
|
||||
|
||||
- name: Template encrypted files for {{ addon_namespace }}/{{ addon_name }}
|
||||
block:
|
||||
@@ -32,3 +36,5 @@
|
||||
mode: "0644"
|
||||
force: true
|
||||
with_community.general.filetree: ["../templates/addons/{{ addon_name }}/"]
|
||||
loop_control:
|
||||
label: "{{ item.path }}"
|
||||
@@ -11,6 +11,8 @@
|
||||
state: directory
|
||||
mode: "0755"
|
||||
with_community.general.filetree: ["../templates/addons/{{ addon_name }}/"]
|
||||
loop_control:
|
||||
label: "{{ item.path }}"
|
||||
|
||||
- name: Template unencrypted files for {{ addon_namespace }}/{{ addon_name }}
|
||||
when: item.state == 'file' and 'sops' not in item.path
|
||||
@@ -19,6 +21,8 @@
|
||||
dest: "{{ repository_path }}/kubernetes/apps/{{ addon_namespace }}/{{ addon_name }}/{{ item.path | replace('.j2', '') }}"
|
||||
mode: "0644"
|
||||
with_community.general.filetree: ["../templates/addons/{{ addon_name }}/"]
|
||||
loop_control:
|
||||
label: "{{ item.path }}"
|
||||
|
||||
- name: Template encrypted files for {{ addon_namespace }}/{{ addon_name }}
|
||||
block:
|
||||
@@ -32,3 +36,5 @@
|
||||
mode: "0644"
|
||||
force: true
|
||||
with_community.general.filetree: ["../templates/addons/{{ addon_name }}/"]
|
||||
loop_control:
|
||||
label: "{{ item.path }}"
|
||||
@@ -11,6 +11,8 @@
|
||||
state: directory
|
||||
mode: "0755"
|
||||
with_community.general.filetree: ["../templates/addons/{{ addon_name }}/"]
|
||||
loop_control:
|
||||
label: "{{ item.path }}"
|
||||
|
||||
- name: Template unencrypted files for {{ addon_namespace }}/{{ addon_name }}
|
||||
when: item.state == 'file' and 'sops' not in item.path
|
||||
@@ -19,6 +21,8 @@
|
||||
dest: "{{ repository_path }}/kubernetes/apps/{{ addon_namespace }}/{{ addon_name }}/{{ item.path | replace('.j2', '') }}"
|
||||
mode: "0644"
|
||||
with_community.general.filetree: ["../templates/addons/{{ addon_name }}/"]
|
||||
loop_control:
|
||||
label: "{{ item.path }}"
|
||||
|
||||
# https://github.com/ansible-collections/community.sops/issues/153
|
||||
- name: Template encrypted files for {{ addon_namespace }}/{{ addon_name }}
|
||||
@@ -33,3 +37,5 @@
|
||||
mode: "0644"
|
||||
force: true
|
||||
with_community.general.filetree: ["../templates/addons/{{ addon_name }}/"]
|
||||
loop_control:
|
||||
label: "{{ item.path }}"
|
||||
@@ -11,6 +11,8 @@
|
||||
state: directory
|
||||
mode: "0755"
|
||||
with_community.general.filetree: ["../templates/addons/{{ addon_name }}/"]
|
||||
loop_control:
|
||||
label: "{{ item.path }}"
|
||||
|
||||
- name: Template unencrypted files for {{ addon_namespace }}/{{ addon_name }}
|
||||
when: item.state == 'file' and 'sops' not in item.path
|
||||
@@ -19,6 +21,8 @@
|
||||
dest: "{{ repository_path }}/kubernetes/apps/{{ addon_namespace }}/{{ addon_name }}/{{ item.path | replace('.j2', '') }}"
|
||||
mode: "0644"
|
||||
with_community.general.filetree: ["../templates/addons/{{ addon_name }}/"]
|
||||
loop_control:
|
||||
label: "{{ item.path }}"
|
||||
|
||||
- name: Template encrypted files for {{ addon_namespace }}/{{ addon_name }}
|
||||
block:
|
||||
@@ -32,3 +36,5 @@
|
||||
mode: "0644"
|
||||
force: true
|
||||
with_community.general.filetree: ["../templates/addons/{{ addon_name }}/"]
|
||||
loop_control:
|
||||
label: "{{ item.path }}"
|
||||
@@ -11,6 +11,8 @@
|
||||
state: directory
|
||||
mode: "0755"
|
||||
with_community.general.filetree: ["../templates/addons/{{ addon_name }}/"]
|
||||
loop_control:
|
||||
label: "{{ item.path }}"
|
||||
|
||||
- name: Template unencrypted files for {{ addon_namespace }}/{{ addon_name }}
|
||||
when: item.state == 'file' and 'sops' not in item.path
|
||||
@@ -19,6 +21,8 @@
|
||||
dest: "{{ repository_path }}/kubernetes/apps/{{ addon_namespace }}/{{ addon_name }}/{{ item.path | replace('.j2', '') }}"
|
||||
mode: "0644"
|
||||
with_community.general.filetree: ["../templates/addons/{{ addon_name }}/"]
|
||||
loop_control:
|
||||
label: "{{ item.path }}"
|
||||
|
||||
- name: Template encrypted files for {{ addon_namespace }}/{{ addon_name }}
|
||||
block:
|
||||
@@ -32,3 +36,5 @@
|
||||
mode: "0644"
|
||||
force: true
|
||||
with_community.general.filetree: ["../templates/addons/{{ addon_name }}/"]
|
||||
loop_control:
|
||||
label: "{{ item.path }}"
|
||||
@@ -11,6 +11,8 @@
|
||||
state: directory
|
||||
mode: "0755"
|
||||
with_community.general.filetree: ["../templates/addons/{{ addon_name }}/"]
|
||||
loop_control:
|
||||
label: "{{ item.path }}"
|
||||
|
||||
- name: Template unencrypted files for {{ addon_namespace }}/{{ addon_name }}
|
||||
when: item.state == 'file' and 'sops' not in item.path
|
||||
@@ -19,6 +21,8 @@
|
||||
dest: "{{ repository_path }}/kubernetes/apps/{{ addon_namespace }}/{{ addon_name }}/{{ item.path | replace('.j2', '') }}"
|
||||
mode: "0644"
|
||||
with_community.general.filetree: ["../templates/addons/{{ addon_name }}/"]
|
||||
loop_control:
|
||||
label: "{{ item.path }}"
|
||||
|
||||
- name: Template encrypted files for {{ addon_namespace }}/{{ addon_name }}
|
||||
block:
|
||||
@@ -32,3 +36,5 @@
|
||||
mode: "0644"
|
||||
force: true
|
||||
with_community.general.filetree: ["../templates/addons/{{ addon_name }}/"]
|
||||
loop_control:
|
||||
label: "{{ item.path }}"
|
||||
@@ -11,6 +11,8 @@
|
||||
state: directory
|
||||
mode: "0755"
|
||||
with_community.general.filetree: ["../templates/addons/{{ addon_name }}/"]
|
||||
loop_control:
|
||||
label: "{{ item.path }}"
|
||||
|
||||
- name: Template unencrypted files for {{ addon_namespace }}/{{ addon_name }}
|
||||
when: item.state == 'file' and 'sops' not in item.path
|
||||
@@ -19,6 +21,8 @@
|
||||
dest: "{{ repository_path }}/kubernetes/apps/{{ addon_namespace }}/{{ addon_name }}/{{ item.path | replace('.j2', '') }}"
|
||||
mode: "0644"
|
||||
with_community.general.filetree: ["../templates/addons/{{ addon_name }}/"]
|
||||
loop_control:
|
||||
label: "{{ item.path }}"
|
||||
|
||||
- name: Template encrypted files for {{ addon_namespace }}/{{ addon_name }}
|
||||
block:
|
||||
@@ -32,3 +36,5 @@
|
||||
mode: "0644"
|
||||
force: true
|
||||
with_community.general.filetree: ["../templates/addons/{{ addon_name }}/"]
|
||||
loop_control:
|
||||
label: "{{ item.path }}"
|
||||
@@ -11,6 +11,8 @@
|
||||
state: directory
|
||||
mode: "0755"
|
||||
with_community.general.filetree: ["../templates/addons/{{ addon_name }}/"]
|
||||
loop_control:
|
||||
label: "{{ item.path }}"
|
||||
|
||||
- name: Template unencrypted files for {{ addon_namespace }}/{{ addon_name }}
|
||||
when: item.state == 'file' and 'sops' not in item.path
|
||||
@@ -19,6 +21,8 @@
|
||||
dest: "{{ repository_path }}/kubernetes/apps/{{ addon_namespace }}/{{ addon_name }}/{{ item.path | replace('.j2', '') }}"
|
||||
mode: "0644"
|
||||
with_community.general.filetree: ["../templates/addons/{{ addon_name }}/"]
|
||||
loop_control:
|
||||
label: "{{ item.path }}"
|
||||
|
||||
- name: Template encrypted files for {{ addon_namespace }}/{{ addon_name }}
|
||||
block:
|
||||
@@ -32,3 +36,5 @@
|
||||
mode: "0644"
|
||||
force: true
|
||||
with_community.general.filetree: ["../templates/addons/{{ addon_name }}/"]
|
||||
loop_control:
|
||||
label: "{{ item.path }}"
|
||||
@@ -8,6 +8,8 @@
|
||||
with_community.general.filetree:
|
||||
- "../templates/ansible/shared/"
|
||||
- "../templates/ansible/{{ bootstrap_distribution }}/"
|
||||
loop_control:
|
||||
label: "{{ item.path }}"
|
||||
|
||||
- name: Template Ansible unencrypted files
|
||||
when:
|
||||
@@ -21,6 +23,8 @@
|
||||
with_community.general.filetree:
|
||||
- "../templates/ansible/shared/"
|
||||
- "../templates/ansible/{{ bootstrap_distribution }}/"
|
||||
loop_control:
|
||||
label: "{{ item.path }}"
|
||||
|
||||
- name: Template Ansible encrypted files
|
||||
block:
|
||||
@@ -38,3 +42,5 @@
|
||||
with_community.general.filetree:
|
||||
- "../templates/ansible/shared/"
|
||||
- "../templates/ansible/{{ bootstrap_distribution }}/"
|
||||
loop_control:
|
||||
label: "{{ item.path }}"
|
||||
@@ -6,6 +6,8 @@
|
||||
state: directory
|
||||
mode: "0755"
|
||||
with_community.general.filetree: ["../templates/kubernetes/"]
|
||||
loop_control:
|
||||
label: "{{ item.path }}"
|
||||
|
||||
- name: Template Kubernetes unencrypted files
|
||||
when:
|
||||
@@ -19,6 +21,8 @@
|
||||
dest: "{{ repository_path }}/kubernetes/{{ item.path | regex_replace('.j2$', '') }}"
|
||||
mode: "0644"
|
||||
with_community.general.filetree: ["../templates/kubernetes/"]
|
||||
loop_control:
|
||||
label: "{{ item.path }}"
|
||||
|
||||
- name: Check if the cluster user settings file already exists
|
||||
stat:
|
||||
@@ -35,6 +39,8 @@
|
||||
dest: "{{ repository_path }}/kubernetes/{{ item.path | regex_replace('.j2$', '') }}"
|
||||
mode: "0644"
|
||||
with_community.general.filetree: ["../templates/kubernetes/"]
|
||||
loop_control:
|
||||
label: "{{ item.path }}"
|
||||
|
||||
- name: Check if the cluster user secrets file already exists
|
||||
stat:
|
||||
@@ -51,6 +57,8 @@
|
||||
dest: "{{ repository_path }}/kubernetes/{{ item.path | regex_replace('.j2$', '') }}"
|
||||
mode: "0644"
|
||||
with_community.general.filetree: ["../templates/kubernetes/"]
|
||||
loop_control:
|
||||
label: "{{ item.path }}"
|
||||
|
||||
- name: Template Kubernetes encrypted files
|
||||
block:
|
||||
@@ -66,3 +74,5 @@
|
||||
mode: "0644"
|
||||
force: true
|
||||
with_community.general.filetree: ["../templates/kubernetes/"]
|
||||
loop_control:
|
||||
label: "{{ item.path }}"
|
||||
Reference in new issue
Block a user