diff --git a/ansible/roles/firstboot/files/ansible_payload/roles/metacluster/tasks/main.yml b/ansible/roles/firstboot/files/ansible_payload/roles/metacluster/tasks/main.yml index 3062497..bf98039 100644 --- a/ansible/roles/firstboot/files/ansible_payload/roles/metacluster/tasks/main.yml +++ b/ansible/roles/firstboot/files/ansible_payload/roles/metacluster/tasks/main.yml @@ -123,6 +123,29 @@ dest: /etc/rancher/k3s/registries.yaml src: registries.j2 +- name: Install gitea chart + kubernetes.core.helm: + name: gitea + chart_ref: /opt/metacluster/helm-charts/gitea + release_namespace: gitea + create_namespace: yes + wait: yes + kubeconfig: "{{ kubeconfig.path }}" + values: + gitea: + admin: + username: admin + password: "{{ vapp['guestinfo.rootpw'] }}" + email: admin@{{ vapp['metacluster.fqdn'] }} + image: + pullPolicy: IfNotPresent + ingress: + hosts: + - host: git.{{ vapp['metacluster.fqdn'] }} + paths: + - path: / + pathType: Prefix + - name: Cleanup tempfile ansible.builtin.file: path: "{{ kubeconfig.path }}" diff --git a/ansible/vars/metacluster.yml b/ansible/vars/metacluster.yml index ee84a3f..bb973f4 100644 --- a/ansible/vars/metacluster.yml +++ b/ansible/vars/metacluster.yml @@ -51,6 +51,8 @@ dependencies: - quay.io/skopeo/stable:v1.8.0 static_binaries: + - filename: tea + url: https://dl.gitea.io/tea/0.8.0/tea-0.8.0-linux-amd64 - filename: helm url: https://get.helm.sh/helm-v3.9.0-linux-amd64.tar.gz archive: compressed