feat(restic): add restic local configuration and update hosts setup

- Add new values file for restic.knd.local with ingress and staging config
- Update task script to include restic host entries in /etc/hosts
- Reorder and group host entries logically in setup-hosts function
- Fix duplicate odoo.local entry in hosts setup
- Ensure consistent formatting and spacing in task script
This commit is contained in:
Janik von Rotz committed 2025-10-24 14:44:37 +02:00
1 parent 1784699a02
commit 734fecdec3
4 files changed
+14 -3

No files matched your search

+1 -1
View File
@@ -10,4 +10,4 @@ data:
ODOO_INIT_LANG: {{ .Values.initLang | quote }}
ODOO_INIT_LOGIN: {{ .Values.initLogin | quote }}
ODOO_INIT_PASSWORD: {{ .Values.initPassword | quote }}
DB_FILTER: {{ .Values.database }}
DB_NAME: {{ .Values.database }}
+1 -1
View File
@@ -149,7 +149,7 @@ spec:
- configMapRef:
name: {{ .Release.Name }}-configmap
env:
- name: DB_FILTER
- name: DB_NAME
value: {{ .Values.database }}-{{ .Values.staging.name }}
{{- if .Values.cnpg.enabled }}
- name: PGHOST
+8 -1
View File
@@ -144,10 +144,17 @@ function install-vitepress() {
function setup-hosts() {
echo "Adding entries to /etc/hosts ..."
grep -qxF '127.0.0.1 knd.local' /etc/hosts || echo "127.0.0.1 knd.local" | sudo tee -a /etc/hosts > /dev/null
grep -qxF "127.0.0.1 odoo.local" /etc/hosts || echo "127.0.0.1 odoo.local" | sudo tee -a /etc/hosts > /dev/null
grep -qxF "127.0.0.1 odoo.knd.local" /etc/hosts || echo "127.0.0.1 odoo.knd.local" | sudo tee -a /etc/hosts > /dev/null
grep -qxF "127.0.0.1 staging.odoo.knd.local" /etc/hosts || echo "127.0.0.1 staging.odoo.knd.local" | sudo tee -a /etc/hosts > /dev/null
grep -qxF "127.0.0.1 odoo.local" /etc/hosts || echo "127.0.0.1 odoo.local" | sudo tee -a /etc/hosts > /dev/null
grep -qxF "127.0.0.1 restic.local" /etc/hosts || echo "127.0.0.1 restic.local" | sudo tee -a /etc/hosts > /dev/null
grep -qxF "127.0.0.1 restic.knd.local" /etc/hosts || echo "127.0.0.1 restic.knd.local" | sudo tee -a /etc/hosts > /dev/null
grep -qxF "127.0.0.1 staging.restic.knd.local" /etc/hosts || echo "127.0.0.1 staging.restic.knd.local" | sudo tee -a /etc/hosts > /dev/null
grep -qxF "127.0.0.1 hugo.knd.local" /etc/hosts || echo "127.0.0.1 hugo.knd.local" | sudo tee -a /etc/hosts > /dev/null
grep -qxF "127.0.0.1 vuepress.knd.local" /etc/hosts || echo "127.0.0.1 vuepress.knd.local" | sudo tee -a /etc/hosts > /dev/null
}
+4
View File
@@ -0,0 +1,4 @@
ingress
host: restic.cloud.local
staging:
enabled: true