feat: set lstrip on ansible template task and remove comments (#1155)
* feat: set lstrip on ansible template task and remove comments Signed-off-by: Devin Buhl <devin@buhl.casa> * fix: cert-manager block was neing stripped Signed-off-by: Devin Buhl <devin@buhl.casa> --------- Signed-off-by: Devin Buhl <devin@buhl.casa>
This commit is contained in:
1 parent
ef44ea1b2b
commit
a4731906d9
82 files changed
+40
-118
No files matched your search
@@ -20,19 +20,18 @@
|
|||||||
src: "{{ item.src }}"
|
src: "{{ item.src }}"
|
||||||
dest: "{{ repository_path }}/kubernetes/apps/{{ addon_namespace }}/{{ addon_name }}/{{ item.path | replace('.j2', '') }}"
|
dest: "{{ repository_path }}/kubernetes/apps/{{ addon_namespace }}/{{ addon_name }}/{{ item.path | replace('.j2', '') }}"
|
||||||
mode: "0644"
|
mode: "0644"
|
||||||
|
lstrip_blocks: true
|
||||||
with_community.general.filetree: ["../templates/addons/{{ addon_name }}/"]
|
with_community.general.filetree: ["../templates/addons/{{ addon_name }}/"]
|
||||||
loop_control:
|
loop_control:
|
||||||
label: "{{ item.path }}"
|
label: "{{ item.path }}"
|
||||||
|
|
||||||
- name: Template encrypted files for {{ addon_namespace }}/{{ addon_name }}
|
- name: Template encrypted files
|
||||||
block:
|
|
||||||
- name: Template encrypted files
|
|
||||||
when: item.state == 'file' and 'sops' in item.path
|
when: item.state == 'file' and 'sops' in item.path
|
||||||
community.sops.sops_encrypt:
|
community.sops.sops_encrypt:
|
||||||
path: "{{ repository_path }}/kubernetes/apps/{{ addon_namespace }}/{{ addon_name }}/{{ item.path | replace('.j2', '') }}"
|
path: "{{ repository_path }}/kubernetes/apps/{{ addon_namespace }}/{{ addon_name }}/{{ item.path | replace('.j2', '') }}"
|
||||||
encrypted_regex: ^(data|stringData)$
|
encrypted_regex: ^(data|stringData)$
|
||||||
age: ["{{ bootstrap_age_public_key }}"]
|
age: ["{{ bootstrap_age_public_key }}"]
|
||||||
content_yaml: "{{ lookup('ansible.builtin.template', item.src) | from_yaml }}"
|
content_yaml: "{{ lookup('ansible.builtin.template', item.src, lstrip_blocks=true) | from_yaml }}"
|
||||||
mode: "0644"
|
mode: "0644"
|
||||||
force: true
|
force: true
|
||||||
with_community.general.filetree: ["../templates/addons/{{ addon_name }}/"]
|
with_community.general.filetree: ["../templates/addons/{{ addon_name }}/"]
|
||||||
|
|||||||
@@ -20,19 +20,18 @@
|
|||||||
src: "{{ item.src }}"
|
src: "{{ item.src }}"
|
||||||
dest: "{{ repository_path }}/kubernetes/apps/{{ addon_namespace }}/{{ addon_name }}/{{ item.path | replace('.j2', '') }}"
|
dest: "{{ repository_path }}/kubernetes/apps/{{ addon_namespace }}/{{ addon_name }}/{{ item.path | replace('.j2', '') }}"
|
||||||
mode: "0644"
|
mode: "0644"
|
||||||
|
lstrip_blocks: true
|
||||||
with_community.general.filetree: ["../templates/addons/{{ addon_name }}/"]
|
with_community.general.filetree: ["../templates/addons/{{ addon_name }}/"]
|
||||||
loop_control:
|
loop_control:
|
||||||
label: "{{ item.path }}"
|
label: "{{ item.path }}"
|
||||||
|
|
||||||
- name: Template encrypted files for {{ addon_namespace }}/{{ addon_name }}
|
- name: Template encrypted files
|
||||||
block:
|
|
||||||
- name: Template encrypted files
|
|
||||||
when: item.state == 'file' and 'sops' in item.path
|
when: item.state == 'file' and 'sops' in item.path
|
||||||
community.sops.sops_encrypt:
|
community.sops.sops_encrypt:
|
||||||
path: "{{ repository_path }}/kubernetes/apps/{{ addon_namespace }}/{{ addon_name }}/{{ item.path | replace('.j2', '') }}"
|
path: "{{ repository_path }}/kubernetes/apps/{{ addon_namespace }}/{{ addon_name }}/{{ item.path | replace('.j2', '') }}"
|
||||||
encrypted_regex: ^(data|stringData)$
|
encrypted_regex: ^(data|stringData)$
|
||||||
age: ["{{ bootstrap_age_public_key }}"]
|
age: ["{{ bootstrap_age_public_key }}"]
|
||||||
content_yaml: "{{ lookup('ansible.builtin.template', item.src) | from_yaml }}"
|
content_yaml: "{{ lookup('ansible.builtin.template', item.src, lstrip_blocks=true) | from_yaml }}"
|
||||||
mode: "0644"
|
mode: "0644"
|
||||||
force: true
|
force: true
|
||||||
with_community.general.filetree: ["../templates/addons/{{ addon_name }}/"]
|
with_community.general.filetree: ["../templates/addons/{{ addon_name }}/"]
|
||||||
|
|||||||
@@ -20,19 +20,18 @@
|
|||||||
src: "{{ item.src }}"
|
src: "{{ item.src }}"
|
||||||
dest: "{{ repository_path }}/kubernetes/apps/{{ addon_namespace }}/{{ addon_name }}/{{ item.path | replace('.j2', '') }}"
|
dest: "{{ repository_path }}/kubernetes/apps/{{ addon_namespace }}/{{ addon_name }}/{{ item.path | replace('.j2', '') }}"
|
||||||
mode: "0644"
|
mode: "0644"
|
||||||
|
lstrip_blocks: true
|
||||||
with_community.general.filetree: ["../templates/addons/{{ addon_name }}/"]
|
with_community.general.filetree: ["../templates/addons/{{ addon_name }}/"]
|
||||||
loop_control:
|
loop_control:
|
||||||
label: "{{ item.path }}"
|
label: "{{ item.path }}"
|
||||||
|
|
||||||
- name: Template encrypted files for {{ addon_namespace }}/{{ addon_name }}
|
- name: Template encrypted files
|
||||||
block:
|
|
||||||
- name: Template encrypted files
|
|
||||||
when: item.state == 'file' and 'sops' in item.path
|
when: item.state == 'file' and 'sops' in item.path
|
||||||
community.sops.sops_encrypt:
|
community.sops.sops_encrypt:
|
||||||
path: "{{ repository_path }}/kubernetes/apps/{{ addon_namespace }}/{{ addon_name }}/{{ item.path | replace('.j2', '') }}"
|
path: "{{ repository_path }}/kubernetes/apps/{{ addon_namespace }}/{{ addon_name }}/{{ item.path | replace('.j2', '') }}"
|
||||||
encrypted_regex: ^(data|stringData)$
|
encrypted_regex: ^(data|stringData)$
|
||||||
age: ["{{ bootstrap_age_public_key }}"]
|
age: ["{{ bootstrap_age_public_key }}"]
|
||||||
content_yaml: "{{ lookup('ansible.builtin.template', item.src) | from_yaml }}"
|
content_yaml: "{{ lookup('ansible.builtin.template', item.src, lstrip_blocks=true) | from_yaml }}"
|
||||||
mode: "0644"
|
mode: "0644"
|
||||||
force: true
|
force: true
|
||||||
with_community.general.filetree: ["../templates/addons/{{ addon_name }}/"]
|
with_community.general.filetree: ["../templates/addons/{{ addon_name }}/"]
|
||||||
|
|||||||
@@ -20,19 +20,18 @@
|
|||||||
src: "{{ item.src }}"
|
src: "{{ item.src }}"
|
||||||
dest: "{{ repository_path }}/kubernetes/apps/{{ addon_namespace }}/{{ addon_name }}/{{ item.path | replace('.j2', '') }}"
|
dest: "{{ repository_path }}/kubernetes/apps/{{ addon_namespace }}/{{ addon_name }}/{{ item.path | replace('.j2', '') }}"
|
||||||
mode: "0644"
|
mode: "0644"
|
||||||
|
lstrip_blocks: true
|
||||||
with_community.general.filetree: ["../templates/addons/{{ addon_name }}/"]
|
with_community.general.filetree: ["../templates/addons/{{ addon_name }}/"]
|
||||||
loop_control:
|
loop_control:
|
||||||
label: "{{ item.path }}"
|
label: "{{ item.path }}"
|
||||||
|
|
||||||
- name: Template encrypted files for {{ addon_namespace }}/{{ addon_name }}
|
- name: Template encrypted files
|
||||||
block:
|
|
||||||
- name: Template encrypted files
|
|
||||||
when: item.state == 'file' and 'sops' in item.path
|
when: item.state == 'file' and 'sops' in item.path
|
||||||
community.sops.sops_encrypt:
|
community.sops.sops_encrypt:
|
||||||
path: "{{ repository_path }}/kubernetes/apps/{{ addon_namespace }}/{{ addon_name }}/{{ item.path | replace('.j2', '') }}"
|
path: "{{ repository_path }}/kubernetes/apps/{{ addon_namespace }}/{{ addon_name }}/{{ item.path | replace('.j2', '') }}"
|
||||||
encrypted_regex: ^(data|stringData)$
|
encrypted_regex: ^(data|stringData)$
|
||||||
age: ["{{ bootstrap_age_public_key }}"]
|
age: ["{{ bootstrap_age_public_key }}"]
|
||||||
content_yaml: "{{ lookup('ansible.builtin.template', item.src) | from_yaml }}"
|
content_yaml: "{{ lookup('ansible.builtin.template', item.src, lstrip_blocks=true) | from_yaml }}"
|
||||||
mode: "0644"
|
mode: "0644"
|
||||||
force: true
|
force: true
|
||||||
with_community.general.filetree: ["../templates/addons/{{ addon_name }}/"]
|
with_community.general.filetree: ["../templates/addons/{{ addon_name }}/"]
|
||||||
|
|||||||
@@ -20,20 +20,18 @@
|
|||||||
src: "{{ item.src }}"
|
src: "{{ item.src }}"
|
||||||
dest: "{{ repository_path }}/kubernetes/apps/{{ addon_namespace }}/{{ addon_name }}/{{ item.path | replace('.j2', '') }}"
|
dest: "{{ repository_path }}/kubernetes/apps/{{ addon_namespace }}/{{ addon_name }}/{{ item.path | replace('.j2', '') }}"
|
||||||
mode: "0644"
|
mode: "0644"
|
||||||
|
lstrip_blocks: true
|
||||||
with_community.general.filetree: ["../templates/addons/{{ addon_name }}/"]
|
with_community.general.filetree: ["../templates/addons/{{ addon_name }}/"]
|
||||||
loop_control:
|
loop_control:
|
||||||
label: "{{ item.path }}"
|
label: "{{ item.path }}"
|
||||||
|
|
||||||
# https://github.com/ansible-collections/community.sops/issues/153
|
- name: Template encrypted files
|
||||||
- name: Template encrypted files for {{ addon_namespace }}/{{ addon_name }}
|
|
||||||
block:
|
|
||||||
- name: Template encrypted files
|
|
||||||
when: item.state == 'file' and 'sops' in item.path
|
when: item.state == 'file' and 'sops' in item.path
|
||||||
community.sops.sops_encrypt:
|
community.sops.sops_encrypt:
|
||||||
path: "{{ repository_path }}/kubernetes/apps/{{ addon_namespace }}/{{ addon_name }}/{{ item.path | replace('.j2', '') }}"
|
path: "{{ repository_path }}/kubernetes/apps/{{ addon_namespace }}/{{ addon_name }}/{{ item.path | replace('.j2', '') }}"
|
||||||
encrypted_regex: ^(data|stringData)$
|
encrypted_regex: ^(data|stringData)$
|
||||||
age: ["{{ bootstrap_age_public_key }}"]
|
age: ["{{ bootstrap_age_public_key }}"]
|
||||||
content_yaml: "{{ lookup('ansible.builtin.template', item.src) | from_yaml }}"
|
content_yaml: "{{ lookup('ansible.builtin.template', item.src, lstrip_blocks=true) | from_yaml }}"
|
||||||
mode: "0644"
|
mode: "0644"
|
||||||
force: true
|
force: true
|
||||||
with_community.general.filetree: ["../templates/addons/{{ addon_name }}/"]
|
with_community.general.filetree: ["../templates/addons/{{ addon_name }}/"]
|
||||||
|
|||||||
@@ -20,19 +20,18 @@
|
|||||||
src: "{{ item.src }}"
|
src: "{{ item.src }}"
|
||||||
dest: "{{ repository_path }}/kubernetes/apps/{{ addon_namespace }}/{{ addon_name }}/{{ item.path | replace('.j2', '') }}"
|
dest: "{{ repository_path }}/kubernetes/apps/{{ addon_namespace }}/{{ addon_name }}/{{ item.path | replace('.j2', '') }}"
|
||||||
mode: "0644"
|
mode: "0644"
|
||||||
|
lstrip_blocks: true
|
||||||
with_community.general.filetree: ["../templates/addons/{{ addon_name }}/"]
|
with_community.general.filetree: ["../templates/addons/{{ addon_name }}/"]
|
||||||
loop_control:
|
loop_control:
|
||||||
label: "{{ item.path }}"
|
label: "{{ item.path }}"
|
||||||
|
|
||||||
- name: Template encrypted files for {{ addon_namespace }}/{{ addon_name }}
|
- name: Template encrypted files
|
||||||
block:
|
|
||||||
- name: Template encrypted files
|
|
||||||
when: item.state == 'file' and 'sops' in item.path
|
when: item.state == 'file' and 'sops' in item.path
|
||||||
community.sops.sops_encrypt:
|
community.sops.sops_encrypt:
|
||||||
path: "{{ repository_path }}/kubernetes/apps/{{ addon_namespace }}/{{ addon_name }}/{{ item.path | replace('.j2', '') }}"
|
path: "{{ repository_path }}/kubernetes/apps/{{ addon_namespace }}/{{ addon_name }}/{{ item.path | replace('.j2', '') }}"
|
||||||
encrypted_regex: ^(data|stringData)$
|
encrypted_regex: ^(data|stringData)$
|
||||||
age: ["{{ bootstrap_age_public_key }}"]
|
age: ["{{ bootstrap_age_public_key }}"]
|
||||||
content_yaml: "{{ lookup('ansible.builtin.template', item.src) | from_yaml }}"
|
content_yaml: "{{ lookup('ansible.builtin.template', item.src, lstrip_blocks=true) | from_yaml }}"
|
||||||
mode: "0644"
|
mode: "0644"
|
||||||
force: true
|
force: true
|
||||||
with_community.general.filetree: ["../templates/addons/{{ addon_name }}/"]
|
with_community.general.filetree: ["../templates/addons/{{ addon_name }}/"]
|
||||||
|
|||||||
@@ -20,19 +20,18 @@
|
|||||||
src: "{{ item.src }}"
|
src: "{{ item.src }}"
|
||||||
dest: "{{ repository_path }}/kubernetes/apps/{{ addon_namespace }}/{{ addon_name }}/{{ item.path | replace('.j2', '') }}"
|
dest: "{{ repository_path }}/kubernetes/apps/{{ addon_namespace }}/{{ addon_name }}/{{ item.path | replace('.j2', '') }}"
|
||||||
mode: "0644"
|
mode: "0644"
|
||||||
|
lstrip_blocks: true
|
||||||
with_community.general.filetree: ["../templates/addons/{{ addon_name }}/"]
|
with_community.general.filetree: ["../templates/addons/{{ addon_name }}/"]
|
||||||
loop_control:
|
loop_control:
|
||||||
label: "{{ item.path }}"
|
label: "{{ item.path }}"
|
||||||
|
|
||||||
- name: Template encrypted files for {{ addon_namespace }}/{{ addon_name }}
|
- name: Template encrypted files
|
||||||
block:
|
|
||||||
- name: Template encrypted files
|
|
||||||
when: item.state == 'file' and 'sops' in item.path
|
when: item.state == 'file' and 'sops' in item.path
|
||||||
community.sops.sops_encrypt:
|
community.sops.sops_encrypt:
|
||||||
path: "{{ repository_path }}/kubernetes/apps/{{ addon_namespace }}/{{ addon_name }}/{{ item.path | replace('.j2', '') }}"
|
path: "{{ repository_path }}/kubernetes/apps/{{ addon_namespace }}/{{ addon_name }}/{{ item.path | replace('.j2', '') }}"
|
||||||
encrypted_regex: ^(data|stringData)$
|
encrypted_regex: ^(data|stringData)$
|
||||||
age: ["{{ bootstrap_age_public_key }}"]
|
age: ["{{ bootstrap_age_public_key }}"]
|
||||||
content_yaml: "{{ lookup('ansible.builtin.template', item.src) | from_yaml }}"
|
content_yaml: "{{ lookup('ansible.builtin.template', item.src, lstrip_blocks=true) | from_yaml }}"
|
||||||
mode: "0644"
|
mode: "0644"
|
||||||
force: true
|
force: true
|
||||||
with_community.general.filetree: ["../templates/addons/{{ addon_name }}/"]
|
with_community.general.filetree: ["../templates/addons/{{ addon_name }}/"]
|
||||||
|
|||||||
@@ -20,19 +20,18 @@
|
|||||||
src: "{{ item.src }}"
|
src: "{{ item.src }}"
|
||||||
dest: "{{ repository_path }}/kubernetes/apps/{{ addon_namespace }}/{{ addon_name }}/{{ item.path | replace('.j2', '') }}"
|
dest: "{{ repository_path }}/kubernetes/apps/{{ addon_namespace }}/{{ addon_name }}/{{ item.path | replace('.j2', '') }}"
|
||||||
mode: "0644"
|
mode: "0644"
|
||||||
|
lstrip_blocks: true
|
||||||
with_community.general.filetree: ["../templates/addons/{{ addon_name }}/"]
|
with_community.general.filetree: ["../templates/addons/{{ addon_name }}/"]
|
||||||
loop_control:
|
loop_control:
|
||||||
label: "{{ item.path }}"
|
label: "{{ item.path }}"
|
||||||
|
|
||||||
- name: Template encrypted files for {{ addon_namespace }}/{{ addon_name }}
|
- name: Template encrypted files
|
||||||
block:
|
|
||||||
- name: Template encrypted files
|
|
||||||
when: item.state == 'file' and 'sops' in item.path
|
when: item.state == 'file' and 'sops' in item.path
|
||||||
community.sops.sops_encrypt:
|
community.sops.sops_encrypt:
|
||||||
path: "{{ repository_path }}/kubernetes/apps/{{ addon_namespace }}/{{ addon_name }}/{{ item.path | replace('.j2', '') }}"
|
path: "{{ repository_path }}/kubernetes/apps/{{ addon_namespace }}/{{ addon_name }}/{{ item.path | replace('.j2', '') }}"
|
||||||
encrypted_regex: ^(data|stringData)$
|
encrypted_regex: ^(data|stringData)$
|
||||||
age: ["{{ bootstrap_age_public_key }}"]
|
age: ["{{ bootstrap_age_public_key }}"]
|
||||||
content_yaml: "{{ lookup('ansible.builtin.template', item.src) | from_yaml }}"
|
content_yaml: "{{ lookup('ansible.builtin.template', item.src, lstrip_blocks=true) | from_yaml }}"
|
||||||
mode: "0644"
|
mode: "0644"
|
||||||
force: true
|
force: true
|
||||||
with_community.general.filetree: ["../templates/addons/{{ addon_name }}/"]
|
with_community.general.filetree: ["../templates/addons/{{ addon_name }}/"]
|
||||||
|
|||||||
@@ -20,19 +20,18 @@
|
|||||||
src: "{{ item.src }}"
|
src: "{{ item.src }}"
|
||||||
dest: "{{ repository_path }}/kubernetes/apps/{{ addon_namespace }}/{{ addon_name }}/{{ item.path | replace('.j2', '') }}"
|
dest: "{{ repository_path }}/kubernetes/apps/{{ addon_namespace }}/{{ addon_name }}/{{ item.path | replace('.j2', '') }}"
|
||||||
mode: "0644"
|
mode: "0644"
|
||||||
|
lstrip_blocks: true
|
||||||
with_community.general.filetree: ["../templates/addons/{{ addon_name }}/"]
|
with_community.general.filetree: ["../templates/addons/{{ addon_name }}/"]
|
||||||
loop_control:
|
loop_control:
|
||||||
label: "{{ item.path }}"
|
label: "{{ item.path }}"
|
||||||
|
|
||||||
- name: Template encrypted files for {{ addon_namespace }}/{{ addon_name }}
|
- name: Template encrypted files
|
||||||
block:
|
|
||||||
- name: Template encrypted files
|
|
||||||
when: item.state == 'file' and 'sops' in item.path
|
when: item.state == 'file' and 'sops' in item.path
|
||||||
community.sops.sops_encrypt:
|
community.sops.sops_encrypt:
|
||||||
path: "{{ repository_path }}/kubernetes/apps/{{ addon_namespace }}/{{ addon_name }}/{{ item.path | replace('.j2', '') }}"
|
path: "{{ repository_path }}/kubernetes/apps/{{ addon_namespace }}/{{ addon_name }}/{{ item.path | replace('.j2', '') }}"
|
||||||
encrypted_regex: ^(data|stringData)$
|
encrypted_regex: ^(data|stringData)$
|
||||||
age: ["{{ bootstrap_age_public_key }}"]
|
age: ["{{ bootstrap_age_public_key }}"]
|
||||||
content_yaml: "{{ lookup('ansible.builtin.template', item.src) | from_yaml }}"
|
content_yaml: "{{ lookup('ansible.builtin.template', item.src, lstrip_blocks=true) | from_yaml }}"
|
||||||
mode: "0644"
|
mode: "0644"
|
||||||
force: true
|
force: true
|
||||||
with_community.general.filetree: ["../templates/addons/{{ addon_name }}/"]
|
with_community.general.filetree: ["../templates/addons/{{ addon_name }}/"]
|
||||||
|
|||||||
@@ -20,19 +20,18 @@
|
|||||||
src: "{{ item.src }}"
|
src: "{{ item.src }}"
|
||||||
dest: "{{ repository_path }}/kubernetes/apps/{{ addon_namespace }}/{{ addon_name }}/{{ item.path | replace('.j2', '') }}"
|
dest: "{{ repository_path }}/kubernetes/apps/{{ addon_namespace }}/{{ addon_name }}/{{ item.path | replace('.j2', '') }}"
|
||||||
mode: "0644"
|
mode: "0644"
|
||||||
|
lstrip_blocks: true
|
||||||
with_community.general.filetree: ["../templates/addons/{{ addon_name }}/"]
|
with_community.general.filetree: ["../templates/addons/{{ addon_name }}/"]
|
||||||
loop_control:
|
loop_control:
|
||||||
label: "{{ item.path }}"
|
label: "{{ item.path }}"
|
||||||
|
|
||||||
- name: Template encrypted files for {{ addon_namespace }}/{{ addon_name }}
|
- name: Template encrypted files
|
||||||
block:
|
|
||||||
- name: Template encrypted files
|
|
||||||
when: item.state == 'file' and 'sops' in item.path
|
when: item.state == 'file' and 'sops' in item.path
|
||||||
community.sops.sops_encrypt:
|
community.sops.sops_encrypt:
|
||||||
path: "{{ repository_path }}/kubernetes/apps/{{ addon_namespace }}/{{ addon_name }}/{{ item.path | replace('.j2', '') }}"
|
path: "{{ repository_path }}/kubernetes/apps/{{ addon_namespace }}/{{ addon_name }}/{{ item.path | replace('.j2', '') }}"
|
||||||
encrypted_regex: ^(data|stringData)$
|
encrypted_regex: ^(data|stringData)$
|
||||||
age: ["{{ bootstrap_age_public_key }}"]
|
age: ["{{ bootstrap_age_public_key }}"]
|
||||||
content_yaml: "{{ lookup('ansible.builtin.template', item.src) | from_yaml }}"
|
content_yaml: "{{ lookup('ansible.builtin.template', item.src, lstrip_blocks=true) | from_yaml }}"
|
||||||
mode: "0644"
|
mode: "0644"
|
||||||
force: true
|
force: true
|
||||||
with_community.general.filetree: ["../templates/addons/{{ addon_name }}/"]
|
with_community.general.filetree: ["../templates/addons/{{ addon_name }}/"]
|
||||||
|
|||||||
@@ -20,6 +20,7 @@
|
|||||||
src: "{{ item.src }}"
|
src: "{{ item.src }}"
|
||||||
dest: "{{ repository_path }}/ansible/{{ item.path | regex_replace('.j2$', '') }}"
|
dest: "{{ repository_path }}/ansible/{{ item.path | regex_replace('.j2$', '') }}"
|
||||||
mode: "0644"
|
mode: "0644"
|
||||||
|
lstrip_blocks: true
|
||||||
with_community.general.filetree:
|
with_community.general.filetree:
|
||||||
- "../templates/ansible/shared/"
|
- "../templates/ansible/shared/"
|
||||||
- "../templates/ansible/{{ bootstrap_distribution }}/"
|
- "../templates/ansible/{{ bootstrap_distribution }}/"
|
||||||
@@ -27,8 +28,6 @@
|
|||||||
label: "{{ item.path }}"
|
label: "{{ item.path }}"
|
||||||
|
|
||||||
- name: Template Ansible encrypted files
|
- name: Template Ansible encrypted files
|
||||||
block:
|
|
||||||
- name: Template Ansible encrypted files
|
|
||||||
when:
|
when:
|
||||||
- "item.state == 'file'"
|
- "item.state == 'file'"
|
||||||
- "'sops' in item.path"
|
- "'sops' in item.path"
|
||||||
@@ -36,7 +35,7 @@
|
|||||||
path: "{{ repository_path }}/ansible/{{ item.path | replace('.j2', '') }}"
|
path: "{{ repository_path }}/ansible/{{ item.path | replace('.j2', '') }}"
|
||||||
encrypted_regex: ^(data|stringData)$
|
encrypted_regex: ^(data|stringData)$
|
||||||
age: ["{{ bootstrap_age_public_key }}"]
|
age: ["{{ bootstrap_age_public_key }}"]
|
||||||
content_yaml: "{{ lookup('ansible.builtin.template', item.src) | from_yaml }}"
|
content_yaml: "{{ lookup('ansible.builtin.template', item.src, lstrip_blocks=true) | from_yaml }}"
|
||||||
mode: "0644"
|
mode: "0644"
|
||||||
force: true
|
force: true
|
||||||
with_community.general.filetree:
|
with_community.general.filetree:
|
||||||
|
|||||||
@@ -4,3 +4,4 @@
|
|||||||
src: "templates/k0s/k0s-config.yaml.j2"
|
src: "templates/k0s/k0s-config.yaml.j2"
|
||||||
dest: "{{ repository_path }}/k0s-config.yaml"
|
dest: "{{ repository_path }}/k0s-config.yaml"
|
||||||
mode: "0644"
|
mode: "0644"
|
||||||
|
lstrip_blocks: true
|
||||||
@@ -20,6 +20,7 @@
|
|||||||
src: "{{ item.src }}"
|
src: "{{ item.src }}"
|
||||||
dest: "{{ repository_path }}/kubernetes/{{ item.path | regex_replace('.j2$', '') }}"
|
dest: "{{ repository_path }}/kubernetes/{{ item.path | regex_replace('.j2$', '') }}"
|
||||||
mode: "0644"
|
mode: "0644"
|
||||||
|
lstrip_blocks: true
|
||||||
with_community.general.filetree: ["../templates/kubernetes/"]
|
with_community.general.filetree: ["../templates/kubernetes/"]
|
||||||
loop_control:
|
loop_control:
|
||||||
label: "{{ item.path }}"
|
label: "{{ item.path }}"
|
||||||
@@ -38,6 +39,7 @@
|
|||||||
src: "{{ item.src }}"
|
src: "{{ item.src }}"
|
||||||
dest: "{{ repository_path }}/kubernetes/{{ item.path | regex_replace('.j2$', '') }}"
|
dest: "{{ repository_path }}/kubernetes/{{ item.path | regex_replace('.j2$', '') }}"
|
||||||
mode: "0644"
|
mode: "0644"
|
||||||
|
lstrip_blocks: true
|
||||||
with_community.general.filetree: ["../templates/kubernetes/"]
|
with_community.general.filetree: ["../templates/kubernetes/"]
|
||||||
loop_control:
|
loop_control:
|
||||||
label: "{{ item.path }}"
|
label: "{{ item.path }}"
|
||||||
@@ -56,13 +58,12 @@
|
|||||||
src: "{{ item.src }}"
|
src: "{{ item.src }}"
|
||||||
dest: "{{ repository_path }}/kubernetes/{{ item.path | regex_replace('.j2$', '') }}"
|
dest: "{{ repository_path }}/kubernetes/{{ item.path | regex_replace('.j2$', '') }}"
|
||||||
mode: "0644"
|
mode: "0644"
|
||||||
|
lstrip_blocks: true
|
||||||
with_community.general.filetree: ["../templates/kubernetes/"]
|
with_community.general.filetree: ["../templates/kubernetes/"]
|
||||||
loop_control:
|
loop_control:
|
||||||
label: "{{ item.path }}"
|
label: "{{ item.path }}"
|
||||||
|
|
||||||
- name: Template Kubernetes encrypted files
|
- name: Template Kubernetes encrypted files
|
||||||
block:
|
|
||||||
- name: Template Kubernetes encrypted files
|
|
||||||
when:
|
when:
|
||||||
- "item.state == 'file'"
|
- "item.state == 'file'"
|
||||||
- "'sops' in item.path"
|
- "'sops' in item.path"
|
||||||
@@ -70,7 +71,7 @@
|
|||||||
path: "{{ repository_path }}/kubernetes/{{ item.path | replace('.j2', '') }}"
|
path: "{{ repository_path }}/kubernetes/{{ item.path | replace('.j2', '') }}"
|
||||||
encrypted_regex: ^(data|stringData)$
|
encrypted_regex: ^(data|stringData)$
|
||||||
age: ["{{ bootstrap_age_public_key }}"]
|
age: ["{{ bootstrap_age_public_key }}"]
|
||||||
content_yaml: "{{ lookup('ansible.builtin.template', item.src) | from_yaml }}"
|
content_yaml: "{{ lookup('ansible.builtin.template', item.src, lstrip_blocks=true) | from_yaml }}"
|
||||||
mode: "0644"
|
mode: "0644"
|
||||||
force: true
|
force: true
|
||||||
with_community.general.filetree: ["../templates/kubernetes/"]
|
with_community.general.filetree: ["../templates/kubernetes/"]
|
||||||
|
|||||||
@@ -4,3 +4,4 @@
|
|||||||
src: "templates/.sops.yaml.j2"
|
src: "templates/.sops.yaml.j2"
|
||||||
dest: "{{ repository_path }}/.sops.yaml"
|
dest: "{{ repository_path }}/.sops.yaml"
|
||||||
mode: "0644"
|
mode: "0644"
|
||||||
|
lstrip_blocks: true
|
||||||
@@ -1,4 +1,3 @@
|
|||||||
#jinja2: trim_blocks: True, lstrip_blocks: True
|
|
||||||
---
|
---
|
||||||
apiVersion: helm.toolkit.fluxcd.io/v2beta2
|
apiVersion: helm.toolkit.fluxcd.io/v2beta2
|
||||||
kind: HelmRelease
|
kind: HelmRelease
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
#jinja2: trim_blocks: True, lstrip_blocks: True
|
|
||||||
---
|
---
|
||||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
kind: Kustomization
|
kind: Kustomization
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
#jinja2: trim_blocks: True, lstrip_blocks: True
|
|
||||||
---
|
---
|
||||||
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
||||||
kind: Kustomization
|
kind: Kustomization
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
#jinja2: trim_blocks: True, lstrip_blocks: True
|
|
||||||
---
|
---
|
||||||
apiVersion: helm.toolkit.fluxcd.io/v2beta2
|
apiVersion: helm.toolkit.fluxcd.io/v2beta2
|
||||||
kind: HelmRelease
|
kind: HelmRelease
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
#jinja2: trim_blocks: True, lstrip_blocks: True
|
|
||||||
---
|
---
|
||||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
kind: Kustomization
|
kind: Kustomization
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
#jinja2: trim_blocks: True, lstrip_blocks: True
|
|
||||||
{% for item in csi_driver_nfs.storage_class %}
|
{% for item in csi_driver_nfs.storage_class %}
|
||||||
---
|
---
|
||||||
apiVersion: storage.k8s.io/v1
|
apiVersion: storage.k8s.io/v1
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
#jinja2: trim_blocks: True, lstrip_blocks: True
|
|
||||||
---
|
---
|
||||||
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
||||||
kind: Kustomization
|
kind: Kustomization
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
#jinja2: trim_blocks: True, lstrip_blocks: True
|
|
||||||
---
|
---
|
||||||
apiVersion: helm.toolkit.fluxcd.io/v2beta2
|
apiVersion: helm.toolkit.fluxcd.io/v2beta2
|
||||||
kind: HelmRelease
|
kind: HelmRelease
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
#jinja2: trim_blocks: True, lstrip_blocks: True
|
|
||||||
---
|
---
|
||||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
kind: Kustomization
|
kind: Kustomization
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
#jinja2: trim_blocks: True, lstrip_blocks: True
|
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Secret
|
kind: Secret
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
#jinja2: trim_blocks: True, lstrip_blocks: True
|
|
||||||
---
|
---
|
||||||
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
||||||
kind: Kustomization
|
kind: Kustomization
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
#jinja2: trim_blocks: True, lstrip_blocks: True
|
|
||||||
---
|
---
|
||||||
apiVersion: helm.toolkit.fluxcd.io/v2beta2
|
apiVersion: helm.toolkit.fluxcd.io/v2beta2
|
||||||
kind: HelmRelease
|
kind: HelmRelease
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
#jinja2: trim_blocks: True, lstrip_blocks: True
|
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
#jinja2: trim_blocks: True, lstrip_blocks: True
|
|
||||||
---
|
---
|
||||||
apiVersion: helm.toolkit.fluxcd.io/v2beta2
|
apiVersion: helm.toolkit.fluxcd.io/v2beta2
|
||||||
kind: HelmRelease
|
kind: HelmRelease
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
#jinja2: trim_blocks: True, lstrip_blocks: True
|
|
||||||
---
|
---
|
||||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
kind: Kustomization
|
kind: Kustomization
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
#jinja2: trim_blocks: True, lstrip_blocks: True
|
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Secret
|
kind: Secret
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
#jinja2: trim_blocks: True, lstrip_blocks: True
|
|
||||||
---
|
---
|
||||||
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
||||||
kind: Kustomization
|
kind: Kustomization
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
#jinja2: trim_blocks: True, lstrip_blocks: True
|
|
||||||
---
|
---
|
||||||
apiVersion: helm.toolkit.fluxcd.io/v2beta2
|
apiVersion: helm.toolkit.fluxcd.io/v2beta2
|
||||||
kind: HelmRelease
|
kind: HelmRelease
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
#jinja2: trim_blocks: True, lstrip_blocks: True
|
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
#jinja2: trim_blocks: True, lstrip_blocks: True
|
|
||||||
---
|
---
|
||||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
kind: Kustomization
|
kind: Kustomization
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
#jinja2: trim_blocks: True, lstrip_blocks: True
|
|
||||||
---
|
---
|
||||||
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
||||||
kind: Kustomization
|
kind: Kustomization
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
#jinja2: trim_blocks: True, lstrip_blocks: True
|
|
||||||
---
|
---
|
||||||
apiVersion: helm.toolkit.fluxcd.io/v2beta2
|
apiVersion: helm.toolkit.fluxcd.io/v2beta2
|
||||||
kind: HelmRelease
|
kind: HelmRelease
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
#jinja2: trim_blocks: True, lstrip_blocks: True
|
|
||||||
---
|
---
|
||||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
kind: Kustomization
|
kind: Kustomization
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
#jinja2: trim_blocks: True, lstrip_blocks: True
|
|
||||||
# For dashboard sign in token:
|
# For dashboard sign in token:
|
||||||
# kubectl -n observability get secret kubernetes-dashboard -o jsonpath='{.data.token}' | base64 -d
|
# kubectl -n observability get secret kubernetes-dashboard -o jsonpath='{.data.token}' | base64 -d
|
||||||
---
|
---
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
#jinja2: trim_blocks: True, lstrip_blocks: True
|
|
||||||
---
|
---
|
||||||
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
||||||
kind: Kustomization
|
kind: Kustomization
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
#jinja2: trim_blocks: True, lstrip_blocks: True
|
|
||||||
---
|
---
|
||||||
apiVersion: helm.toolkit.fluxcd.io/v2beta2
|
apiVersion: helm.toolkit.fluxcd.io/v2beta2
|
||||||
kind: HelmRelease
|
kind: HelmRelease
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
#jinja2: trim_blocks: True, lstrip_blocks: True
|
|
||||||
---
|
---
|
||||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
kind: Kustomization
|
kind: Kustomization
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
#jinja2: trim_blocks: True, lstrip_blocks: True
|
|
||||||
---
|
---
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
kind: ClusterRoleBinding
|
kind: ClusterRoleBinding
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
#jinja2: trim_blocks: True, lstrip_blocks: True
|
|
||||||
---
|
---
|
||||||
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
||||||
kind: Kustomization
|
kind: Kustomization
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
#jinja2: trim_blocks: True, lstrip_blocks: True
|
|
||||||
---
|
---
|
||||||
apiVersion: upgrade.cattle.io/v1
|
apiVersion: upgrade.cattle.io/v1
|
||||||
kind: Plan
|
kind: Plan
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
#jinja2: trim_blocks: True, lstrip_blocks: True
|
|
||||||
---
|
---
|
||||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
kind: Kustomization
|
kind: Kustomization
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
#jinja2: trim_blocks: True, lstrip_blocks: True
|
|
||||||
---
|
---
|
||||||
apiVersion: upgrade.cattle.io/v1
|
apiVersion: upgrade.cattle.io/v1
|
||||||
kind: Plan
|
kind: Plan
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
#jinja2: trim_blocks: True, lstrip_blocks: True
|
|
||||||
---
|
---
|
||||||
apiVersion: helm.toolkit.fluxcd.io/v2beta2
|
apiVersion: helm.toolkit.fluxcd.io/v2beta2
|
||||||
kind: HelmRelease
|
kind: HelmRelease
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
#jinja2: trim_blocks: True, lstrip_blocks: True
|
|
||||||
---
|
---
|
||||||
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
||||||
kind: Kustomization
|
kind: Kustomization
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
#jinja2: trim_blocks: True, lstrip_blocks: True
|
|
||||||
---
|
---
|
||||||
apiVersion: helm.toolkit.fluxcd.io/v2beta2
|
apiVersion: helm.toolkit.fluxcd.io/v2beta2
|
||||||
kind: HelmRelease
|
kind: HelmRelease
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
#jinja2: trim_blocks: True, lstrip_blocks: True
|
|
||||||
---
|
---
|
||||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
kind: Kustomization
|
kind: Kustomization
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
#jinja2: trim_blocks: True, lstrip_blocks: True
|
|
||||||
---
|
---
|
||||||
apiVersion: helm.toolkit.fluxcd.io/v2beta2
|
apiVersion: helm.toolkit.fluxcd.io/v2beta2
|
||||||
kind: HelmRelease
|
kind: HelmRelease
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
#jinja2: trim_blocks: True, lstrip_blocks: True
|
|
||||||
---
|
---
|
||||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
kind: Kustomization
|
kind: Kustomization
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
#jinja2: trim_blocks: True, lstrip_blocks: True
|
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Secret
|
kind: Secret
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
#jinja2: trim_blocks: True, lstrip_blocks: True
|
|
||||||
---
|
---
|
||||||
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
||||||
kind: Kustomization
|
kind: Kustomization
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
#jinja2: trim_blocks: True, lstrip_blocks: True
|
|
||||||
---
|
---
|
||||||
#
|
#
|
||||||
# Below vars are for the xanmanning.k3s role
|
# Below vars are for the xanmanning.k3s role
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
#jinja2: trim_blocks: True, lstrip_blocks: True
|
|
||||||
---
|
---
|
||||||
# https://rancher.com/docs/k3s/latest/en/installation/install-options/server-config/
|
# https://rancher.com/docs/k3s/latest/en/installation/install-options/server-config/
|
||||||
# https://github.com/PyratLabs/ansible-role-k3s
|
# https://github.com/PyratLabs/ansible-role-k3s
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
#jinja2: trim_blocks: True, lstrip_blocks: True
|
|
||||||
---
|
---
|
||||||
# https://rancher.com/docs/k3s/latest/en/installation/install-options/agent-config/
|
# https://rancher.com/docs/k3s/latest/en/installation/install-options/agent-config/
|
||||||
# https://github.com/PyratLabs/ansible-role-k3s
|
# https://github.com/PyratLabs/ansible-role-k3s
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
#jinja2: trim_blocks: True, lstrip_blocks: True
|
|
||||||
---
|
---
|
||||||
- name: Cluster Installation
|
- name: Cluster Installation
|
||||||
hosts: kubernetes
|
hosts: kubernetes
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
#jinja2: trim_blocks: True, lstrip_blocks: True
|
|
||||||
---
|
---
|
||||||
# https://docs.k3s.io/helm
|
# https://docs.k3s.io/helm
|
||||||
apiVersion: helm.cattle.io/v1
|
apiVersion: helm.cattle.io/v1
|
||||||
|
|||||||
-1
@@ -1,4 +1,3 @@
|
|||||||
#jinja2: trim_blocks: True, lstrip_blocks: True
|
|
||||||
---
|
---
|
||||||
# https://docs.k3s.io/helm
|
# https://docs.k3s.io/helm
|
||||||
apiVersion: helm.cattle.io/v1
|
apiVersion: helm.cattle.io/v1
|
||||||
|
|||||||
-1
@@ -1,4 +1,3 @@
|
|||||||
#jinja2: trim_blocks: True, lstrip_blocks: True
|
|
||||||
---
|
---
|
||||||
timezone: "{{ bootstrap_timezone }}"
|
timezone: "{{ bootstrap_timezone }}"
|
||||||
github_username: "{{ bootstrap_github_username }}"
|
github_username: "{{ bootstrap_github_username }}"
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
#jinja2: trim_blocks: True, lstrip_blocks: True
|
|
||||||
---
|
---
|
||||||
kubernetes:
|
kubernetes:
|
||||||
children:
|
children:
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
#jinja2: trim_blocks: True, lstrip_blocks: True
|
|
||||||
---
|
---
|
||||||
- name: Cluster Nuke
|
- name: Cluster Nuke
|
||||||
hosts: kubernetes
|
hosts: kubernetes
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
#jinja2: trim_blocks: True, lstrip_blocks: True
|
|
||||||
---
|
---
|
||||||
- name: Prepare System
|
- name: Prepare System
|
||||||
hosts: kubernetes
|
hosts: kubernetes
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
#jinja2: trim_blocks: True, lstrip_blocks: True
|
|
||||||
---
|
---
|
||||||
- name: Reboot
|
- name: Reboot
|
||||||
hosts: kubernetes
|
hosts: kubernetes
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
#jinja2: trim_blocks: True, lstrip_blocks: True
|
|
||||||
---
|
---
|
||||||
# https://github.com/kevincoakley/ansible-role-k8s-rolling-update
|
# https://github.com/kevincoakley/ansible-role-k8s-rolling-update
|
||||||
- name: Cluster rollout update
|
- name: Cluster rollout update
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
#jinja2: trim_blocks: True, lstrip_blocks: True
|
|
||||||
---
|
---
|
||||||
apiVersion: k0sctl.k0sproject.io/v1beta1
|
apiVersion: k0sctl.k0sproject.io/v1beta1
|
||||||
kind: Cluster
|
kind: Cluster
|
||||||
|
|||||||
+2
-4
@@ -1,4 +1,3 @@
|
|||||||
#jinja2: trim_blocks: True
|
|
||||||
---
|
---
|
||||||
apiVersion: monitoring.coreos.com/v1
|
apiVersion: monitoring.coreos.com/v1
|
||||||
kind: PrometheusRule
|
kind: PrometheusRule
|
||||||
@@ -29,9 +28,8 @@ spec:
|
|||||||
severity: warning
|
severity: warning
|
||||||
annotations:
|
annotations:
|
||||||
description: >
|
description: >
|
||||||
The domain that this cert covers will be unavailable after
|
The domain that this cert covers will be unavailable after {% raw %}{{ $value | humanizeDuration }}{% endraw %}.
|
||||||
{% raw %}{{ $value | humanizeDuration }}{% endraw %}. Clients using endpoints that this cert
|
Clients using endpoints that this cert protects will start to fail in {% raw %}{{ $value | humanizeDuration }}{% endraw %}.
|
||||||
protects will start to fail in {% raw %}{{ $value | humanizeDuration }}{% endraw %}.
|
|
||||||
runbook_url: https://gitlab.com/uneeq-oss/cert-manager-mixin/-/blob/master/RUNBOOK.md#certmanagercertexpirysoon
|
runbook_url: https://gitlab.com/uneeq-oss/cert-manager-mixin/-/blob/master/RUNBOOK.md#certmanagercertexpirysoon
|
||||||
summary: |
|
summary: |
|
||||||
The cert {% raw %}{{ $labels.name }}{% endraw %} is {% raw %}{{ $value | humanizeDuration }}{% endraw %} from expiry, it should have renewed over a week ago.
|
The cert {% raw %}{{ $labels.name }}{% endraw %} is {% raw %}{{ $value | humanizeDuration }}{% endraw %} from expiry, it should have renewed over a week ago.
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
#jinja2: trim_blocks: True, lstrip_blocks: True
|
|
||||||
---
|
---
|
||||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
kind: Kustomization
|
kind: Kustomization
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
#jinja2: trim_blocks: True, lstrip_blocks: True
|
|
||||||
---
|
---
|
||||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
kind: Kustomization
|
kind: Kustomization
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
#jinja2: trim_blocks: True, lstrip_blocks: True
|
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
#jinja2: trim_blocks: True, lstrip_blocks: True
|
|
||||||
---
|
---
|
||||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
kind: Kustomization
|
kind: Kustomization
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
#jinja2: trim_blocks: True, lstrip_blocks: True
|
|
||||||
---
|
---
|
||||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
kind: Kustomization
|
kind: Kustomization
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
#jinja2: trim_blocks: True, lstrip_blocks: True
|
|
||||||
---
|
---
|
||||||
apiVersion: helm.toolkit.fluxcd.io/v2beta2
|
apiVersion: helm.toolkit.fluxcd.io/v2beta2
|
||||||
kind: HelmRelease
|
kind: HelmRelease
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
#jinja2: trim_blocks: True, lstrip_blocks: True
|
|
||||||
---
|
---
|
||||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
kind: Kustomization
|
kind: Kustomization
|
||||||
|
|||||||
-1
@@ -1,4 +1,3 @@
|
|||||||
#jinja2: trim_blocks: True, lstrip_blocks: True
|
|
||||||
---
|
---
|
||||||
apiVersion: helm.toolkit.fluxcd.io/v2beta2
|
apiVersion: helm.toolkit.fluxcd.io/v2beta2
|
||||||
kind: HelmRelease
|
kind: HelmRelease
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
#jinja2: trim_blocks: True, lstrip_blocks: True
|
|
||||||
---
|
---
|
||||||
apiVersion: helm.toolkit.fluxcd.io/v2beta2
|
apiVersion: helm.toolkit.fluxcd.io/v2beta2
|
||||||
kind: HelmRelease
|
kind: HelmRelease
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
#jinja2: trim_blocks: True, lstrip_blocks: True
|
|
||||||
---
|
---
|
||||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
kind: Kustomization
|
kind: Kustomization
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
#jinja2: trim_blocks: True, lstrip_blocks: True
|
|
||||||
---
|
---
|
||||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
kind: Kustomization
|
kind: Kustomization
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
#jinja2: trim_blocks: True, lstrip_blocks: True
|
|
||||||
---
|
---
|
||||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
kind: Kustomization
|
kind: Kustomization
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
#jinja2: trim_blocks: True, lstrip_blocks: True
|
|
||||||
---
|
---
|
||||||
apiVersion: source.toolkit.fluxcd.io/v1
|
apiVersion: source.toolkit.fluxcd.io/v1
|
||||||
kind: GitRepository
|
kind: GitRepository
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
#jinja2: trim_blocks: True, lstrip_blocks: True
|
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
|
|||||||
Reference in new issue
Block a user