Remove debugging;Revert default quotes;Test dynamic helm chart values
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
0b97ae2fc5
commit
d6c885240a
@ -63,15 +63,15 @@
|
|||||||
create_namespace: yes
|
create_namespace: yes
|
||||||
wait: yes
|
wait: yes
|
||||||
kubeconfig: "{{ kubeconfig.path }}"
|
kubeconfig: "{{ kubeconfig.path }}"
|
||||||
values:
|
values: "{{ components.longhorn.chart_values }}"
|
||||||
defaultSettings:
|
# defaultSettings:
|
||||||
defaultDataPath: /mnt/blockstorage
|
# defaultDataPath: /mnt/blockstorage
|
||||||
defaultReplicaCount: 1
|
# defaultReplicaCount: 1
|
||||||
ingress:
|
# ingress:
|
||||||
enabled: true
|
# enabled: true
|
||||||
host: storage.{{ vapp['metacluster.fqdn'] }}
|
# host: storage.{{ vapp['metacluster.fqdn'] }}
|
||||||
persistence:
|
# persistence:
|
||||||
defaultClassReplicaCount: 1
|
# defaultClassReplicaCount: 1
|
||||||
|
|
||||||
- name: Install harbor chart
|
- name: Install harbor chart
|
||||||
kubernetes.core.helm:
|
kubernetes.core.helm:
|
||||||
@ -81,15 +81,15 @@
|
|||||||
create_namespace: yes
|
create_namespace: yes
|
||||||
wait: yes
|
wait: yes
|
||||||
kubeconfig: "{{ kubeconfig.path }}"
|
kubeconfig: "{{ kubeconfig.path }}"
|
||||||
values:
|
values: "{{ components.harbor.chart_values }}"
|
||||||
expose:
|
# expose:
|
||||||
ingress:
|
# ingress:
|
||||||
hosts:
|
# hosts:
|
||||||
core: registry.{{ vapp['metacluster.fqdn'] }}
|
# core: registry.{{ vapp['metacluster.fqdn'] }}
|
||||||
externalURL: https://registry.{{ vapp['metacluster.fqdn'] }}
|
# externalURL: https://registry.{{ vapp['metacluster.fqdn'] }}
|
||||||
harborAdminPassword: "{{ vapp['guestinfo.rootpw'] }}"
|
# harborAdminPassword: "{{ vapp['guestinfo.rootpw'] }}"
|
||||||
notary:
|
# notary:
|
||||||
enabled: false
|
# enabled: false
|
||||||
|
|
||||||
- name: Push images to registry
|
- name: Push images to registry
|
||||||
ansible.builtin.shell:
|
ansible.builtin.shell:
|
||||||
@ -126,41 +126,41 @@
|
|||||||
create_namespace: yes
|
create_namespace: yes
|
||||||
wait: yes
|
wait: yes
|
||||||
kubeconfig: "{{ kubeconfig.path }}"
|
kubeconfig: "{{ kubeconfig.path }}"
|
||||||
values:
|
values: "{{ components.gitea.chart_values }}"
|
||||||
gitea:
|
# gitea:
|
||||||
admin:
|
# admin:
|
||||||
username: administrator
|
# username: administrator
|
||||||
password: "{{ vapp['guestinfo.rootpw'] }}"
|
# password: "{{ vapp['guestinfo.rootpw'] }}"
|
||||||
email: admin@{{ vapp['metacluster.fqdn'] }}
|
# email: admin@{{ vapp['metacluster.fqdn'] }}
|
||||||
image:
|
# image:
|
||||||
pullPolicy: IfNotPresent
|
# pullPolicy: IfNotPresent
|
||||||
ingress:
|
# ingress:
|
||||||
enabled: true
|
# enabled: true
|
||||||
hosts:
|
# hosts:
|
||||||
- host: git.{{ vapp['metacluster.fqdn'] }}
|
# - host: git.{{ vapp['metacluster.fqdn'] }}
|
||||||
paths:
|
# paths:
|
||||||
- path: /
|
# - path: /
|
||||||
pathType: Prefix
|
# pathType: Prefix
|
||||||
|
|
||||||
- name: Install argo-cd chart
|
- name: Install argo-cd chart
|
||||||
kubernetes.core.helm:
|
kubernetes.core.helm:
|
||||||
name: argo-cd
|
name: argo-cd
|
||||||
chart_ref: /opt/metacluster/helm-charts/argo-cd
|
chart_ref: /opt/metacluster/helm-charts/argocd
|
||||||
release_namespace: argo-cd
|
release_namespace: argo-cd
|
||||||
create_namespace: yes
|
create_namespace: yes
|
||||||
wait: yes
|
wait: yes
|
||||||
kubeconfig: "{{ kubeconfig.path }}"
|
kubeconfig: "{{ kubeconfig.path }}"
|
||||||
values:
|
values: "{{ components.argocd.chart_values }}"
|
||||||
server:
|
# server:
|
||||||
extraArgs:
|
# extraArgs:
|
||||||
- --insecure
|
# - --insecure
|
||||||
ingress:
|
# ingress:
|
||||||
enabled: true
|
# enabled: true
|
||||||
hosts:
|
# hosts:
|
||||||
- gitops.{{ vapp['metacluster.fqdn'] }}
|
# - gitops.{{ vapp['metacluster.fqdn'] }}
|
||||||
configs:
|
# configs:
|
||||||
secret:
|
# secret:
|
||||||
argocdServerAdminPassword: "{{ vapp['guestinfo.rootpw'] | password_hash('bcrypt') }}"
|
# argocdServerAdminPassword: "{{ vapp['guestinfo.rootpw'] | password_hash('bcrypt') }}"
|
||||||
|
|
||||||
- name: Cleanup tempfile
|
- name: Cleanup tempfile
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
|
@ -31,13 +31,10 @@
|
|||||||
loop_control:
|
loop_control:
|
||||||
label: "{{ item.key }}"
|
label: "{{ item.key }}"
|
||||||
|
|
||||||
- ansible.builtin.debug:
|
|
||||||
msg: "{{ chart_values | to_nice_yaml(default_style='\"', indent=2, width=4096) }}"
|
|
||||||
|
|
||||||
- name: Write dict to vars_file
|
- name: Write dict to vars_file
|
||||||
ansible.builtin.blockinfile:
|
ansible.builtin.blockinfile:
|
||||||
path: /opt/firstboot/ansible/vars/metacluster.yml
|
path: /opt/firstboot/ansible/vars/metacluster.yml
|
||||||
block: "{{ { 'components': chart_values } | to_nice_yaml(default_style='\"', indent=2, width=4096) }}"
|
block: "{{ { 'components': chart_values } | to_nice_yaml(indent=2, width=4096) }}"
|
||||||
|
|
||||||
- name: Parse helm charts for container images
|
- name: Parse helm charts for container images
|
||||||
ansible.builtin.shell:
|
ansible.builtin.shell:
|
||||||
|
@ -66,11 +66,23 @@ components:
|
|||||||
- path: /
|
- path: /
|
||||||
pathType: Prefix
|
pathType: Prefix
|
||||||
|
|
||||||
argo-cd:
|
argocd:
|
||||||
helm:
|
helm:
|
||||||
version: 4.9.7 # (= ArgoCD v2.4.2)
|
version: 4.9.7 # (= ArgoCD v2.4.2)
|
||||||
chart: argo/argo-cd
|
chart: argo/argo-cd
|
||||||
parse_logic: helm template . | yq --no-doc eval '.. | .image? | select(.)' | sort -u | awk '!/ /'
|
parse_logic: helm template . | yq --no-doc eval '.. | .image? | select(.)' | sort -u | awk '!/ /'
|
||||||
|
chart_values:
|
||||||
|
server:
|
||||||
|
extraArgs:
|
||||||
|
- --insecure
|
||||||
|
ingress:
|
||||||
|
enabled: true
|
||||||
|
hosts:
|
||||||
|
- gitops.[% vapp['metacluster.fqdn'] %]
|
||||||
|
configs:
|
||||||
|
secret:
|
||||||
|
argocdServerAdminPassword: "[% vapp['guestinfo.rootpw'] | password_hash('bcrypt') %]"
|
||||||
|
|
||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user