Merge branch 'Kubernetes.Bootstrap.Appliance' of https://code.spamasaurus.com/djpbessems/Packer.Images into Kubernetes.Bootstrap.Appliance
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Danny Bessems 2022-08-28 10:00:59 +02:00
commit bd0b74ba19
5 changed files with 25 additions and 23 deletions

View File

@ -34,6 +34,10 @@
- argo-cd - argo-cd
- kube-system - kube-system
tags:
- never
- final
- name: Configure step-ca passthrough ingress - name: Configure step-ca passthrough ingress
ansible.builtin.template: ansible.builtin.template:
src: ingressroutetcp.j2 src: ingressroutetcp.j2
@ -70,6 +74,9 @@
- name: LEGO_CA_CERTIFICATES - name: LEGO_CA_CERTIFICATES
value: /step-ca/root_ca.crt value: /step-ca/root_ca.crt
marker: ' # {mark} ANSIBLE MANAGED BLOCK' marker: ' # {mark} ANSIBLE MANAGED BLOCK'
tags:
- never
- final
notify: notify:
- Apply manifests - Apply manifests

View File

@ -36,15 +36,11 @@
ansible.builtin.meta: flush_handlers ansible.builtin.meta: flush_handlers
- name: Ensure gitea API availability - name: Ensure gitea API availability
ansible.utils.cli_parse: ansible.builtin.uri:
# Available from Gitea 1.17.x url: https://git.{{ vapp['metacluster.fqdn'] }}/api/healtz
# command: curl -k https://git.{{ vapp['metacluster.fqdn'] }}/api/healtz method: GET
command: curl -k https://git.{{ vapp['metacluster.fqdn'] }}/api/v1/version register: api_readycheck
parser: until: api_readycheck.json.status | default(false) | bool
name: ansible.utils.json
set_fact: api_readycheck
ignore_errors:
until: api_readycheck.version is defined
retries: 3 retries: 3
delay: 30 delay: 30

View File

@ -11,13 +11,11 @@
values: "{{ components.argocd.chart_values }}" values: "{{ components.argocd.chart_values }}"
- name: Ensure argo-cd API availability - name: Ensure argo-cd API availability
ansible.utils.cli_parse: ansible.builtin.uri:
command: curl -k https://gitops.{{ vapp['metacluster.fqdn'] }}/api/version url: https://gitops.{{ vapp['metacluster.fqdn'] }}/api/version
parser: method: GET
name: ansible.utils.json register: api_readycheck
set_fact: api_readycheck until: api_readycheck.json.Version | default(false) | bool
ignore_errors:
until: api_readycheck.Version is defined
retries: 3 retries: 3
delay: 30 delay: 30

View File

@ -12,13 +12,11 @@
when: ansible_facts.services['k3s.service'] is undefined when: ansible_facts.services['k3s.service'] is undefined
- name: Ensure API availability - name: Ensure API availability
ansible.utils.cli_parse: ansible.builtin.uri:
command: curl -k https://{{ vapp['guestinfo.ipaddress'] }}:6443/livez?verbose url: https://{{ vapp['guestinfo.ipaddress'] }}:6443/livez?verbose
parser: method: GET
name: ansible.utils.json register: api_readycheck
set_fact: api_readycheck until: api_readycheck.json.apiVersion | default(false) | bool
ignore_errors: yes
until: api_readycheck.apiVersion is defined
retries: 3 retries: 3
delay: 30 delay: 30

View File

@ -6,4 +6,7 @@
- import_tasks: registry.yml - import_tasks: registry.yml
- import_tasks: git.yml - import_tasks: git.yml
- import_tasks: gitops.yml - import_tasks: gitops.yml
- import_tasks: certauthority.yml
tags: final
- import_tasks: cleanup.yml - import_tasks: cleanup.yml