Enable offlineMode for gitea;Cleanup comments;Populate /etc/hosts
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
0918eb36fe
commit
20ce62fb6d
@ -55,6 +55,17 @@
|
|||||||
chdir: /opt/metacluster/container-images
|
chdir: /opt/metacluster/container-images
|
||||||
loop: "{{ imagetarballs.files }}"
|
loop: "{{ imagetarballs.files }}"
|
||||||
|
|
||||||
|
- name: Create component entries in /etc/hosts
|
||||||
|
ansible.builtin.lineinfile:
|
||||||
|
path: /etc/hosts
|
||||||
|
line: "{{ vapp['guestinfo.ipaddress'] }} {{ item + '.' + vapp['metacluster.fqdn'] }}"
|
||||||
|
state: present
|
||||||
|
loop:
|
||||||
|
- git
|
||||||
|
- gitops
|
||||||
|
- registry
|
||||||
|
- storage
|
||||||
|
|
||||||
- name: Install longhorn chart
|
- name: Install longhorn chart
|
||||||
kubernetes.core.helm:
|
kubernetes.core.helm:
|
||||||
name: longhorn
|
name: longhorn
|
||||||
@ -64,14 +75,6 @@
|
|||||||
wait: yes
|
wait: yes
|
||||||
kubeconfig: "{{ kubeconfig.path }}"
|
kubeconfig: "{{ kubeconfig.path }}"
|
||||||
values: "{{ components.longhorn.chart_values }}"
|
values: "{{ components.longhorn.chart_values }}"
|
||||||
# defaultSettings:
|
|
||||||
# defaultDataPath: /mnt/blockstorage
|
|
||||||
# defaultReplicaCount: 1
|
|
||||||
# ingress:
|
|
||||||
# enabled: true
|
|
||||||
# host: storage.{{ vapp['metacluster.fqdn'] }}
|
|
||||||
# persistence:
|
|
||||||
# defaultClassReplicaCount: 1
|
|
||||||
|
|
||||||
- name: Install harbor chart
|
- name: Install harbor chart
|
||||||
kubernetes.core.helm:
|
kubernetes.core.helm:
|
||||||
@ -82,14 +85,6 @@
|
|||||||
wait: yes
|
wait: yes
|
||||||
kubeconfig: "{{ kubeconfig.path }}"
|
kubeconfig: "{{ kubeconfig.path }}"
|
||||||
values: "{{ components.harbor.chart_values }}"
|
values: "{{ components.harbor.chart_values }}"
|
||||||
# expose:
|
|
||||||
# ingress:
|
|
||||||
# hosts:
|
|
||||||
# core: registry.{{ vapp['metacluster.fqdn'] }}
|
|
||||||
# externalURL: https://registry.{{ vapp['metacluster.fqdn'] }}
|
|
||||||
# harborAdminPassword: "{{ vapp['guestinfo.rootpw'] }}"
|
|
||||||
# notary:
|
|
||||||
# enabled: false
|
|
||||||
|
|
||||||
- name: Push images to registry
|
- name: Push images to registry
|
||||||
ansible.builtin.shell:
|
ansible.builtin.shell:
|
||||||
@ -127,20 +122,25 @@
|
|||||||
wait: yes
|
wait: yes
|
||||||
kubeconfig: "{{ kubeconfig.path }}"
|
kubeconfig: "{{ kubeconfig.path }}"
|
||||||
values: "{{ components.gitea.chart_values }}"
|
values: "{{ components.gitea.chart_values }}"
|
||||||
# gitea:
|
|
||||||
# admin:
|
- block:
|
||||||
# username: administrator
|
|
||||||
# password: "{{ vapp['guestinfo.rootpw'] }}"
|
- name: Ensure gitea API availability
|
||||||
# email: admin@{{ vapp['metacluster.fqdn'] }}
|
ansible.utils.cli_parse:
|
||||||
# image:
|
# Available from Gitea 1.17.x
|
||||||
# pullPolicy: IfNotPresent
|
# command: curl -k https://git.{{ vapp['metacluster.fqdn'] }}/api/healtz
|
||||||
# ingress:
|
command: curl -k https://git.{{ vapp['metacluster.fqdn'] }}/api/v1/version
|
||||||
# enabled: true
|
parser:
|
||||||
# hosts:
|
name: ansible.utils.json
|
||||||
# - host: git.{{ vapp['metacluster.fqdn'] }}
|
set_fact: api_readycheck
|
||||||
# paths:
|
ignore_errors:
|
||||||
# - path: /
|
until: api_readycheck.version is defined
|
||||||
# pathType: Prefix
|
retries: 3
|
||||||
|
delay: 30
|
||||||
|
|
||||||
|
- name: Generate gitea API token
|
||||||
|
ansible.builtin.uri:
|
||||||
|
url: https://git.{{ vapp['metacluster.fqdn']}}
|
||||||
|
|
||||||
- name: Install argo-cd chart
|
- name: Install argo-cd chart
|
||||||
kubernetes.core.helm:
|
kubernetes.core.helm:
|
||||||
@ -151,16 +151,6 @@
|
|||||||
wait: yes
|
wait: yes
|
||||||
kubeconfig: "{{ kubeconfig.path }}"
|
kubeconfig: "{{ kubeconfig.path }}"
|
||||||
values: "{{ components.argocd.chart_values }}"
|
values: "{{ components.argocd.chart_values }}"
|
||||||
# server:
|
|
||||||
# extraArgs:
|
|
||||||
# - --insecure
|
|
||||||
# ingress:
|
|
||||||
# enabled: true
|
|
||||||
# hosts:
|
|
||||||
# - gitops.{{ vapp['metacluster.fqdn'] }}
|
|
||||||
# configs:
|
|
||||||
# secret:
|
|
||||||
# argocdServerAdminPassword: "{{ vapp['guestinfo.rootpw'] | password_hash('bcrypt') }}"
|
|
||||||
|
|
||||||
- name: Cleanup tempfile
|
- name: Cleanup tempfile
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
|
@ -51,6 +51,8 @@ components:
|
|||||||
chart: gitea-charts/gitea
|
chart: gitea-charts/gitea
|
||||||
parse_logic: helm template . | yq --no-doc eval '.. | .image? | select(.)' | sort -u | sed '/:/!s/$/:latest/'
|
parse_logic: helm template . | yq --no-doc eval '.. | .image? | select(.)' | sort -u | sed '/:/!s/$/:latest/'
|
||||||
chart_values: !unsafe |
|
chart_values: !unsafe |
|
||||||
|
config:
|
||||||
|
offlineMode: true
|
||||||
gitea:
|
gitea:
|
||||||
admin:
|
admin:
|
||||||
username: administrator
|
username: administrator
|
||||||
|
Loading…
Reference in New Issue
Block a user