feat: attempt to add a e2e workflow (#1143)
* feat: attempt to add a e2e workflow Signed-off-by: Devin Buhl <devin@buhl.casa> * feat: attempt to add a e2e workflow Signed-off-by: Devin Buhl <devin@buhl.casa> * feat: attempt to add a e2e workflow Signed-off-by: Devin Buhl <devin@buhl.casa> * feat: attempt to add a e2e workflow Signed-off-by: Devin Buhl <devin@buhl.casa> * feat: attempt to add a e2e workflow Signed-off-by: Devin Buhl <devin@buhl.casa> * feat: attempt to add a e2e workflow Signed-off-by: Devin Buhl <devin@buhl.casa> * feat: attempt to add a e2e workflow Signed-off-by: Devin Buhl <devin@buhl.casa> * feat: attempt to add a e2e workflow Signed-off-by: Devin Buhl <devin@buhl.casa> * feat: attempt to add a e2e workflow Signed-off-by: Devin Buhl <devin@buhl.casa> * feat: attempt to add a e2e workflow Signed-off-by: Devin Buhl <devin@buhl.casa> --------- Signed-off-by: Devin Buhl <devin@buhl.casa>
This commit is contained in:
1 parent
e34899bfe2
commit
2f9e6068d3
12 files changed
+205
-10
No files matched your search
@@ -2,6 +2,7 @@
|
||||
- name: Cluster Installation
|
||||
hosts: localhost
|
||||
connection: local
|
||||
gather_facts: false
|
||||
vars_files:
|
||||
- vars/config.yaml
|
||||
- vars/addons.yaml
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
- name: Check for required CLI tools
|
||||
ansible.builtin.shell: |
|
||||
command -v {{ item }} >/dev/null 2>&1
|
||||
loop: [age, cloudflared, flux, sops]
|
||||
loop: [age, cloudflared, flux, sops, kubeconform, kustomize, jq]
|
||||
changed_when: false
|
||||
check_mode: false
|
||||
register: result
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
---
|
||||
- name: Query Cloudflare zone
|
||||
when: not ci_test | default(false)
|
||||
ansible.builtin.uri:
|
||||
url: https://api.cloudflare.com/client/v4/zones?name={{ bootstrap_cloudflare_domain }}&status=active
|
||||
headers:
|
||||
@@ -11,12 +12,14 @@
|
||||
register: result
|
||||
|
||||
- name: Check if Cloudflare zone exists
|
||||
when: not ci_test | default(false)
|
||||
ansible.builtin.assert:
|
||||
that: result.json.success is true
|
||||
success_msg: Cloudflare zone {{ bootstrap_cloudflare_domain }} exists
|
||||
fail_msg: Cloudflare zone {{ bootstrap_cloudflare_domain }} does not exist
|
||||
|
||||
- name: Query Cloudflared tunnel
|
||||
when: not ci_test | default(false)
|
||||
ansible.builtin.uri:
|
||||
url: https://api.cloudflare.com/client/v4/accounts/{{ bootstrap_cloudflare_account_tag }}/cfd_tunnel/{{ bootstrap_cloudflare_tunnel_id }}
|
||||
headers:
|
||||
@@ -28,6 +31,7 @@
|
||||
register: result
|
||||
|
||||
- name: Check if Cloudflared tunnel exists
|
||||
when: not ci_test | default(false)
|
||||
ansible.builtin.assert:
|
||||
that: result.json.success is true
|
||||
success_msg: Cloudflared tunnel {{ bootstrap_cloudflare_tunnel_id }} exists
|
||||
|
||||
@@ -194,6 +194,7 @@
|
||||
quiet: true
|
||||
|
||||
- name: Verify SSH port is reachable
|
||||
when: not ci_test | default(false)
|
||||
ansible.builtin.wait_for:
|
||||
host: "{{ current_address }}"
|
||||
port: 22
|
||||
|
||||
Reference in new issue
Block a user