feat: enable etcd monitoring for k0s (#1179)

* feat: enable etcd monitoring for k0s

Signed-off-by: Devin Buhl <devin@buhl.casa>

* fix: always enable etcd on k3s

Signed-off-by: Devin Buhl <devin@buhl.casa>

---------

Signed-off-by: Devin Buhl <devin@buhl.casa>
This commit is contained in:
Devin Buhl authored and GitHub committed 2024-01-17 19:44:53 -05:00
1 parent ca9d1818fc
commit 95094450fb
4 files changed
+9 -12

No files matched your search

+4 -4
View File
@@ -16,7 +16,7 @@
fail_msg: Github user {{ bootstrap_github_username }} does not exist
- name: Query Github repo
when: (not ci_test | default(false)) or (not bootstrap_private_github_repo | default(false))
when: (not ci_test | default(false)) and (not bootstrap_private_github_repo | default(false))
ansible.builtin.uri:
url: https://api.github.com/repos/{{ bootstrap_github_username }}/{{ bootstrap_github_repository_name }}
timeout: 5
@@ -25,14 +25,14 @@
register: result
- name: Check if repo exists
when: (not ci_test | default(false)) or (not bootstrap_private_github_repo | default(false))
when: (not ci_test | default(false)) and (not bootstrap_private_github_repo | default(false))
ansible.builtin.assert:
that: result.json.full_name == bootstrap_github_username + '/' + bootstrap_github_repository_name
success_msg: Github repo {{ bootstrap_github_username }}/{{ bootstrap_github_repository_name }} exists
fail_msg: Github repo {{ bootstrap_github_username }}/{{ bootstrap_github_repository_name }} does not exist
- name: Query Github repo branch
when: (not ci_test | default(false)) or (not bootstrap_private_github_repo | default(false))
when: (not ci_test | default(false)) and (not bootstrap_private_github_repo | default(false))
ansible.builtin.uri:
url: https://api.github.com/repos/{{ bootstrap_github_username }}/{{ bootstrap_github_repository_name }}/branches/{{ bootstrap_github_repository_branch | default('main', true) }}
timeout: 5
@@ -41,7 +41,7 @@
register: result
- name: Check if repo branch exists
when: (not ci_test | default(false)) or (not bootstrap_private_github_repo | default(false))
when: (not ci_test | default(false)) and (not bootstrap_private_github_repo | default(false))
ansible.builtin.assert:
that: result.json.name == bootstrap_github_repository_branch | default('main', true)
success_msg: Github repo branch {{ bootstrap_github_repository_branch | default('main', true) }} exists