diff --git a/ansible/roles/firstboot/files/ansible_payload/roles/metacluster/tasks/storage.yml b/ansible/roles/firstboot/files/ansible_payload/roles/metacluster/tasks/storage.yml index 177dbd1..d211c54 100644 --- a/ansible/roles/firstboot/files/ansible_payload/roles/metacluster/tasks/storage.yml +++ b/ansible/roles/firstboot/files/ansible_payload/roles/metacluster/tasks/storage.yml @@ -4,6 +4,16 @@ chart_ref: /opt/metacluster/helm-charts/longhorn release_namespace: longhorn-system create_namespace: yes - wait: yes + wait: no kubeconfig: "{{ kubeconfig.path }}" values: "{{ components.longhorn.chart_values }}" + +- name: Ensure longhorn API availability + ansible.builtin.uri: + url: https://storage.{{ vapp['metacluster.fqdn'] }}/v1 + method: GET + register: api_readycheck + until: + - api_readycheck is not failed + retries: 5 + delay: 30 diff --git a/ansible/vars/metacluster.yml b/ansible/vars/metacluster.yml index ceeee5b..81adc9a 100644 --- a/ansible/vars/metacluster.yml +++ b/ansible/vars/metacluster.yml @@ -1,9 +1,7 @@ platform: k3s: - # version: v1.25.4+k3s1 - # max supported version by Longhorn is