Fix repository path;Add chart values;Fix ansible galaxy cli syntax
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Danny Bessems 2023-04-03 17:25:45 +02:00
parent 5a82c9e122
commit 8e76617794
5 changed files with 37 additions and 4 deletions

View File

@ -39,7 +39,7 @@ steps:
pull: always pull: always
commands: commands:
- | - |
ansible-galaxy install \ ansible-galaxy collection install \
-r ansible/requirements.yml \ -r ansible/requirements.yml \
-p /scratch/ansible-galaxy -p /scratch/ansible-galaxy
volumes: volumes:

View File

@ -16,7 +16,8 @@
- /opt/metacluster/helm-charts - /opt/metacluster/helm-charts
- /opt/metacluster/k3s - /opt/metacluster/k3s
- /opt/metacluster/kube-vip - /opt/metacluster/kube-vip
- /opt/workloadcluster/git-repositories/gitops - /opt/workloadcluster/git-repositories/gitops/charts
- /opt/workloadcluster/git-repositories/gitops/values
- /opt/workloadcluster/helm-charts - /opt/workloadcluster/helm-charts
- /opt/workloadcluster/node-templates - /opt/workloadcluster/node-templates
- /var/lib/rancher/k3s/agent/images - /var/lib/rancher/k3s/agent/images

View File

@ -8,7 +8,7 @@
- name: Create hard-links to populate new git-repository - name: Create hard-links to populate new git-repository
ansible.builtin.shell: ansible.builtin.shell:
cmd: >- cmd: >-
cp -lr {{ item.path }}/ /opt/workloadcluster/git-repositories/gitops/ cp -lr {{ item.path }}/ /opt/workloadcluster/git-repositories/gitops/charts
loop: "{{ helm_charts.files }}" loop: "{{ helm_charts.files }}"
loop_control: loop_control:
label: "{{ item.path | basename }}" label: "{{ item.path | basename }}"

View File

@ -9,7 +9,7 @@ spec:
repoURL: {{ _template.repository.url }} repoURL: {{ _template.repository.url }}
revision: HEAD revision: HEAD
directories: directories:
- path: applicationset/* - path: charts/*
template: template:
metadata: metadata:
name: {% raw %}'{{ path.basename }}'{% endraw +%} name: {% raw %}'{{ path.basename }}'{% endraw +%}

View File

@ -15,6 +15,38 @@ downstream:
chart_values: !unsafe | chart_values: !unsafe |
defaultSettings: defaultSettings:
defaultDataPath: /mnt/blockstorage defaultDataPath: /mnt/blockstorage
global:
cattle:
systemDefaultRegistry: registry.{{ vapp['metacluster.fqdn'] }}
image:
longhorn:
engine:
repository: library/docker.io/longhornio/longhorn-engine
manager:
repository: library/docker.io/longhornio/longhorn-manager
ui:
repository: library/docker.io/longhornio/longhorn-ui
instanceManager:
repository: library/docker.io/longhornio/longhorn-instance-manager
shareManager:
repository: library/docker.io/longhornio/longhorn-share-manager
backingImageManager:
repository: library/docker.io/longhornio/backing-image-manager
supportBundleKit:
repository: library/docker.io/longhornio/support-bundle-kit
csi:
attacher:
repository: library/docker.io/longhornio/csi-attacher
provisioner:
repository: library/docker.io/longhornio/csi-provisioner
nodeDriverRegistrar:
repository: library/docker.io/longhornio/csi-node-driver-registrar
resizer:
repository: library/docker.io/longhornio/csi-resizer
snapshotter:
repository: library/docker.io/longhornio/csi-snapshotter
livenessProbe:
repository: library/docker.io/longhornio/livenessprobe
sealed-secrets: sealed-secrets:
version: 2.8.1 # (= Sealed Secrets v0.20.2) version: 2.8.1 # (= Sealed Secrets v0.20.2)