diff --git a/cluster/apps/data/freshrss/helm-release.yaml b/cluster/apps/data/freshrss/helm-release.yaml index 8c60283b5..648935956 100644 --- a/cluster/apps/data/freshrss/helm-release.yaml +++ b/cluster/apps/data/freshrss/helm-release.yaml @@ -23,7 +23,7 @@ spec: pullPolicy: IfNotPresent env: - TZ: Europe/Paris + TZ: ${TIMEZONE} CRON_MIN: "18,48" DOMAIN: "https://freshrss.${SECRET_CLUSTER_DOMAIN}/" diff --git a/cluster/apps/data/hajimari/helm-release.yaml b/cluster/apps/data/hajimari/helm-release.yaml index 76a640d9d..8323d6338 100644 --- a/cluster/apps/data/hajimari/helm-release.yaml +++ b/cluster/apps/data/hajimari/helm-release.yaml @@ -21,7 +21,7 @@ spec: repository: ghcr.io/toboshii/hajimari tag: v0.2.0 env: - TZ: "Europe/Paris" + TZ: "${TIMEZONE}" hajimari: defaultEnable: true namespaceSelector: @@ -102,7 +102,7 @@ spec: enabled: true ingressClassName: "nginx" # annotations: - # traefik.ingress.kubernetes.io/router.entrypoints: "websecure" + # traefik.ingress.kubernetes.io/router.entrypoints: "websecure" hosts: - host: "hajimari.${SECRET_CLUSTER_DOMAIN}" paths: diff --git a/cluster/apps/data/homer/helm-release.yaml b/cluster/apps/data/homer/helm-release.yaml index e32e181e5..b31aac5c0 100644 --- a/cluster/apps/data/homer/helm-release.yaml +++ b/cluster/apps/data/homer/helm-release.yaml @@ -23,7 +23,7 @@ spec: pullPolicy: IfNotPresent env: - TZ: "Europe/Paris" + TZ: "${TIMEZONE}" persistence: config: @@ -41,9 +41,9 @@ spec: main: enabled: true ingressClassName: "nginx" -# annotations: - # traefik.ingress.kubernetes.io/router.entrypoints: "websecure" - # traefik.ingress.kubernetes.io/router.middlewares: networking-forward-auth@kubernetescrd + # annotations: + # traefik.ingress.kubernetes.io/router.entrypoints: "websecure" + # traefik.ingress.kubernetes.io/router.middlewares: networking-forward-auth@kubernetescrd hosts: - host: "homer.${SECRET_CLUSTER_DOMAIN}" paths: @@ -77,8 +77,8 @@ spec: enabled: true ingressClassName: "nginx" # annotations: - # traefik.ingress.kubernetes.io/router.entrypoints: "websecure" - # traefik.ingress.kubernetes.io/router.middlewares: networking-forward-auth@kubernetescrd + # traefik.ingress.kubernetes.io/router.entrypoints: "websecure" + # traefik.ingress.kubernetes.io/router.middlewares: networking-forward-auth@kubernetescrd hosts: - host: "homer-config.${SECRET_CLUSTER_DOMAIN}" paths: diff --git a/cluster/apps/data/recipes/helm-release.yaml b/cluster/apps/data/recipes/helm-release.yaml index cfa1c7433..ae88751da 100644 --- a/cluster/apps/data/recipes/helm-release.yaml +++ b/cluster/apps/data/recipes/helm-release.yaml @@ -33,7 +33,7 @@ spec: POSTGRES_USER: recipes POSTGRES_PASSWORD: ${SECRET_RECIPES_DB_PASSWORD} GUNICORN_MEDIA: "0" - TIMEZONE: Europe/Paris + TIMEZONE: ${TIMEZONE} FRACTION_PREF_DEFAULT: "0" COMMENT_PREF_DEFAULT: "1" SHOPPING_MIN_AUTOSYNC_INTERVAL: "5" @@ -64,8 +64,8 @@ spec: enabled: true ingressClassName: "nginx" # annotations: - # traefik.ingress.kubernetes.io/router.entrypoints: "websecure" - # traefik.ingress.kubernetes.io/router.middlewares: networking-buffering-small@kubernetescrd + # traefik.ingress.kubernetes.io/router.entrypoints: "websecure" + # traefik.ingress.kubernetes.io/router.middlewares: networking-buffering-small@kubernetescrd hosts: - host: "recipes.${SECRET_CLUSTER_DOMAIN}" paths: diff --git a/cluster/apps/data/resilio-sync/statefulset.yaml b/cluster/apps/data/resilio-sync/statefulset.yaml index 510e67ddd..7fe0cf9f6 100644 --- a/cluster/apps/data/resilio-sync/statefulset.yaml +++ b/cluster/apps/data/resilio-sync/statefulset.yaml @@ -28,7 +28,7 @@ spec: name: resilio-sync-claude env: - name: TZ - value: "Europe/Paris" + value: "${TIMEZONE}" - name: PUID value: "1026" - name: PGID @@ -62,7 +62,7 @@ spec: name: resilio-sync-helene env: - name: TZ - value: "Europe/Paris" + value: "${TIMEZONE}" - name: PUID value: "1027" - name: PGID @@ -206,7 +206,7 @@ apiVersion: networking.k8s.io/v1 kind: Ingress metadata: # annotations: - # traefik.ingress.kubernetes.io/router.entrypoints: "websecure" + # traefik.ingress.kubernetes.io/router.entrypoints: "websecure" labels: app.kubernetes.io/instance: resilio-sync app.kubernetes.io/name: resilio-sync diff --git a/cluster/apps/data/vaultwarden/helm-release.yaml b/cluster/apps/data/vaultwarden/helm-release.yaml index dbd2a7a57..ec299cf15 100644 --- a/cluster/apps/data/vaultwarden/helm-release.yaml +++ b/cluster/apps/data/vaultwarden/helm-release.yaml @@ -26,7 +26,7 @@ spec: DOMAIN: "https://vaultwarden.${SECRET_CLUSTER_DOMAIN}" ADMIN_TOKEN: ${SECRET_VAULTWARDEN_ADMIN_TOKEN} DATABASE_URL: ${SECRET_VAULTWARDEN_DB_URL} - TZ: "Europe/Paris" + TZ: "${TIMEZONE}" DATA_FOLDER: "data" SIGNUPS_ALLOWED: "false" WEBSOCKET_ENABLED: "true" @@ -54,7 +54,7 @@ spec: enabled: true ingressClassName: "nginx" # annotations: - # traefik.ingress.kubernetes.io/router.entrypoints: "websecure" + # traefik.ingress.kubernetes.io/router.entrypoints: "websecure" hosts: - host: "vaultwarden.${SECRET_CLUSTER_DOMAIN}" paths: diff --git a/cluster/apps/home-automation/frigate/helm-release.yaml b/cluster/apps/home-automation/frigate/helm-release.yaml index e5691594a..7ff13af00 100644 --- a/cluster/apps/home-automation/frigate/helm-release.yaml +++ b/cluster/apps/home-automation/frigate/helm-release.yaml @@ -23,7 +23,7 @@ spec: repository: docker.io/blakeblackshear/frigate tag: 0.10.1-amd64 env: - TZ: "Europe/Paris" + TZ: "${TIMEZONE}" MQTT_USER: "${SECRET_MQTT_USERNAME}" MQTT_PASSWORD: ${SECRET_MQTT_PASSWORD} service: diff --git a/cluster/apps/home-automation/home-assistant/helm-release.yaml b/cluster/apps/home-automation/home-assistant/helm-release.yaml index 8fd97bb7a..479b27d28 100644 --- a/cluster/apps/home-automation/home-assistant/helm-release.yaml +++ b/cluster/apps/home-automation/home-assistant/helm-release.yaml @@ -22,7 +22,7 @@ spec: tag: 2022.5.5 env: - TZ: "Europe/Paris" + TZ: "${TIMEZONE}" HASS_SECRET_URL: https://home-assistant.${SECRET_CLUSTER_DOMAIN} HASS_SECRET_LATITUDE: ${SECRET_HASS_LATITUDE} HASS_SECRET_LONGITUDE: ${SECRET_HASS_LONGITUDE} @@ -52,7 +52,7 @@ spec: enabled: true ingressClassName: "nginx" # annotations: - # traefik.ingress.kubernetes.io/router.entrypoints: "websecure" + # traefik.ingress.kubernetes.io/router.entrypoints: "websecure" hosts: - host: "hass.${SECRET_CLUSTER_DOMAIN}" paths: @@ -139,4 +139,8 @@ spec: requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - - { key: "feature.node.kubernetes.io/custom-rflink", operator: In, values: ["true"] } + - { + key: "feature.node.kubernetes.io/custom-rflink", + operator: In, + values: ["true"], + } diff --git a/cluster/apps/home-automation/zigbee2mqtt/helm-release.yaml b/cluster/apps/home-automation/zigbee2mqtt/helm-release.yaml index 1256aaf5a..b56e76172 100644 --- a/cluster/apps/home-automation/zigbee2mqtt/helm-release.yaml +++ b/cluster/apps/home-automation/zigbee2mqtt/helm-release.yaml @@ -22,7 +22,7 @@ spec: tag: 1.25.1 env: - TZ: Europe/Paris + TZ: ${TIMEZONE} ZIGBEE2MQTT_DATA: /data config: @@ -105,4 +105,8 @@ spec: requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - - { key: "feature.node.kubernetes.io/custom-zigbee", operator: In, values: ["true"] } + - { + key: "feature.node.kubernetes.io/custom-zigbee", + operator: In, + values: ["true"], + } diff --git a/cluster/apps/home-automation/zwavejs2mqtt/helm-release.yaml b/cluster/apps/home-automation/zwavejs2mqtt/helm-release.yaml index d9f0691bb..54a7f2657 100644 --- a/cluster/apps/home-automation/zwavejs2mqtt/helm-release.yaml +++ b/cluster/apps/home-automation/zwavejs2mqtt/helm-release.yaml @@ -23,7 +23,7 @@ spec: tag: 6.11.0 env: - TZ: "Europe/Paris" + TZ: "${TIMEZONE}" securityContext: privileged: true @@ -70,4 +70,8 @@ spec: requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - - { key: "feature.node.kubernetes.io/custom-zwave", operator: In, values: ["true"] } + - { + key: "feature.node.kubernetes.io/custom-zwave", + operator: In, + values: ["true"], + } diff --git a/cluster/apps/media/bazarr/helm-release.yaml b/cluster/apps/media/bazarr/helm-release.yaml index e709effa0..569fdd6d8 100644 --- a/cluster/apps/media/bazarr/helm-release.yaml +++ b/cluster/apps/media/bazarr/helm-release.yaml @@ -23,7 +23,7 @@ spec: pullPolicy: IfNotPresent env: - TZ: "Europe/Paris" + TZ: "${TIMEZONE}" podSecurityContext: runAsUser: 568 diff --git a/cluster/apps/media/lidarr/helm-release.yaml b/cluster/apps/media/lidarr/helm-release.yaml index 1988f00ec..3cd617a85 100644 --- a/cluster/apps/media/lidarr/helm-release.yaml +++ b/cluster/apps/media/lidarr/helm-release.yaml @@ -23,7 +23,7 @@ spec: pullPolicy: IfNotPresent env: - TZ: "Europe/Paris" + TZ: "${TIMEZONE}" podSecurityContext: runAsUser: 568 diff --git a/cluster/apps/media/lychee/helm-release.yaml b/cluster/apps/media/lychee/helm-release.yaml index aaa01aa64..908f7f203 100644 --- a/cluster/apps/media/lychee/helm-release.yaml +++ b/cluster/apps/media/lychee/helm-release.yaml @@ -23,7 +23,7 @@ spec: tag: v4.4.0 env: - PHP_TZ: Europe/Paris + PHP_TZ: ${TIMEZONE} DB_CONNECTION: pgsql DB_HOST: postgresql-kube.data.svc.cluster.local. DB_PORT: 5432 diff --git a/cluster/apps/media/prowlarr/helm-release.yaml b/cluster/apps/media/prowlarr/helm-release.yaml index cf8978fc2..3c32f0b47 100644 --- a/cluster/apps/media/prowlarr/helm-release.yaml +++ b/cluster/apps/media/prowlarr/helm-release.yaml @@ -23,7 +23,7 @@ spec: pullPolicy: IfNotPresent env: - TZ: "Europe/Paris" + TZ: "${TIMEZONE}" persistence: config: diff --git a/cluster/apps/media/pyload/helm-release.yaml b/cluster/apps/media/pyload/helm-release.yaml index befa1c417..f9fadeb54 100644 --- a/cluster/apps/media/pyload/helm-release.yaml +++ b/cluster/apps/media/pyload/helm-release.yaml @@ -23,7 +23,7 @@ spec: pullPolicy: IfNotPresent env: - TZ: "Europe/Paris" + TZ: "${TIMEZONE}" persistence: config: diff --git a/cluster/apps/media/qbittorrent/helm-release.yaml b/cluster/apps/media/qbittorrent/helm-release.yaml index 9078c2f52..3cc7bd346 100644 --- a/cluster/apps/media/qbittorrent/helm-release.yaml +++ b/cluster/apps/media/qbittorrent/helm-release.yaml @@ -23,7 +23,7 @@ spec: pullPolicy: IfNotPresent env: - TZ: "Europe/Paris" + TZ: "${TIMEZONE}" podSecurityContext: runAsUser: 568 diff --git a/cluster/apps/media/radarr/helm-release.yaml b/cluster/apps/media/radarr/helm-release.yaml index 9ba509bce..848cf12ef 100644 --- a/cluster/apps/media/radarr/helm-release.yaml +++ b/cluster/apps/media/radarr/helm-release.yaml @@ -24,7 +24,7 @@ spec: pullPolicy: IfNotPresent env: - TZ: "Europe/Paris" + TZ: "${TIMEZONE}" podSecurityContext: runAsUser: 568 diff --git a/cluster/apps/media/readarr/helm-release.yaml b/cluster/apps/media/readarr/helm-release.yaml index aa2713de4..fd810c4b7 100644 --- a/cluster/apps/media/readarr/helm-release.yaml +++ b/cluster/apps/media/readarr/helm-release.yaml @@ -24,7 +24,7 @@ spec: pullPolicy: IfNotPresent env: - TZ: "Europe/Paris" + TZ: "${TIMEZONE}" persistence: config: diff --git a/cluster/apps/media/sabnzbd/helm-release.yaml b/cluster/apps/media/sabnzbd/helm-release.yaml index cfa963e1f..9796be4b0 100644 --- a/cluster/apps/media/sabnzbd/helm-release.yaml +++ b/cluster/apps/media/sabnzbd/helm-release.yaml @@ -22,7 +22,7 @@ spec: tag: v3.5.3 env: - TZ: "Europe/Paris" + TZ: "${TIMEZONE}" persistence: config: diff --git a/cluster/apps/media/sonarr/helm-release.yaml b/cluster/apps/media/sonarr/helm-release.yaml index f2c7a1bc5..fe30c1515 100644 --- a/cluster/apps/media/sonarr/helm-release.yaml +++ b/cluster/apps/media/sonarr/helm-release.yaml @@ -23,7 +23,7 @@ spec: tag: v3.0.8.1507 pullPolicy: IfNotPresent env: - TZ: "Europe/Paris" + TZ: "${TIMEZONE}" podSecurityContext: runAsUser: 568 runAsGroup: 568 diff --git a/cluster/apps/media/tdarr/helm-release.yaml b/cluster/apps/media/tdarr/helm-release.yaml index 5d6b1ee56..420876041 100644 --- a/cluster/apps/media/tdarr/helm-release.yaml +++ b/cluster/apps/media/tdarr/helm-release.yaml @@ -23,7 +23,7 @@ spec: pullPolicy: IfNotPresent env: - TZ: Europe/Paris + TZ: ${TIMEZONE} webUIPort: 8265 serverIP: 0.0.0.0 serverPort: 8266 diff --git a/cluster/apps/media/trash-updater/cronjob.yaml b/cluster/apps/media/trash-updater/cronjob.yaml index fddc4cde6..b35625f0e 100644 --- a/cluster/apps/media/trash-updater/cronjob.yaml +++ b/cluster/apps/media/trash-updater/cronjob.yaml @@ -59,7 +59,7 @@ spec: imagePullPolicy: IfNotPresent env: - name: TZ - value: "Europe/Paris" + value: "${TIMEZONE}" - name: DOTNET_SYSTEM_GLOBALIZATION_INVARIANT value: "1" command: diff --git a/cluster/apps/monitoring/kube-prometheus-stack/helm-release.yaml b/cluster/apps/monitoring/kube-prometheus-stack/helm-release.yaml index a1857be07..e5aba7605 100644 --- a/cluster/apps/monitoring/kube-prometheus-stack/helm-release.yaml +++ b/cluster/apps/monitoring/kube-prometheus-stack/helm-release.yaml @@ -251,7 +251,7 @@ spec: smtp: enabled: false date_formats: - default_timezone: Europe/Paris + default_timezone: ${TIMEZONE} feature_toggles: enable: ngalert ingress: diff --git a/cluster/apps/networking/authelia/helm-release.yaml b/cluster/apps/networking/authelia/helm-release.yaml index ac08cd351..d56ed2262 100644 --- a/cluster/apps/networking/authelia/helm-release.yaml +++ b/cluster/apps/networking/authelia/helm-release.yaml @@ -28,7 +28,7 @@ spec: ingress: enabled: true # annotations: - # traefik.ingress.kubernetes.io/router.entrypoints: "websecure" + # traefik.ingress.kubernetes.io/router.entrypoints: "websecure" subdomain: login tls: @@ -41,7 +41,7 @@ spec: env: - name: TZ - value: Europe/Paris + value: ${TIMEZONE} extraVolumeMounts: - name: config-custom diff --git a/cluster/apps/networking/unifi/helm-release.yaml b/cluster/apps/networking/unifi/helm-release.yaml index a4d7d29e1..3ff8b4c27 100644 --- a/cluster/apps/networking/unifi/helm-release.yaml +++ b/cluster/apps/networking/unifi/helm-release.yaml @@ -23,7 +23,7 @@ spec: pullPolicy: IfNotPresent env: - TZ: "Europe/Paris" + TZ: "${TIMEZONE}" service: main: diff --git a/cluster/base-custom/settings/cluster-settings.yaml b/cluster/base-custom/settings/cluster-settings.yaml index 87d07d64e..362a3e740 100644 --- a/cluster/base-custom/settings/cluster-settings.yaml +++ b/cluster/base-custom/settings/cluster-settings.yaml @@ -25,3 +25,4 @@ data: LOCAL_LAN_K3SWORKER1: 192.168.9.105 LOCAL_LAN_K3SWORKER2: 192.168.9.106 LOCAL_LAN_K3SWORKER3: 192.168.9.107 + TIMEZONE: "Europe/Paris" diff --git a/cluster/core/kube-system/kured/helm-release.yaml b/cluster/core/kube-system/kured/helm-release.yaml index e23412ffe..b9b89de2c 100644 --- a/cluster/core/kube-system/kured/helm-release.yaml +++ b/cluster/core/kube-system/kured/helm-release.yaml @@ -21,7 +21,7 @@ spec: configuration: startTime: "2:00" endTime: "5:00" - timeZone: "Europe/Paris" + timeZone: "${TIMEZONE}" tolerations: - key: "node-role.kubernetes.io/control-plane" operator: "Exists" diff --git a/server/ansible/inventory/group_vars/all/ubuntu-settings.yml b/server/ansible/inventory/group_vars/all/ubuntu-settings.yml index 16cce20be..f6e0335a7 100644 --- a/server/ansible/inventory/group_vars/all/ubuntu-settings.yml +++ b/server/ansible/inventory/group_vars/all/ubuntu-settings.yml @@ -6,7 +6,7 @@ skip_upgrade_packages: false skip_remove_packages: false # Timezone for the servers -timezone: "Europe/Paris" +timezone: "${TIMEZONE}" # # Set custom ntp servers # ntp_servers: diff --git a/server/ansible/roles/ubuntu/tasks/locale.yml b/server/ansible/roles/ubuntu/tasks/locale.yml index 09e20ba62..7d1dcdff7 100644 --- a/server/ansible/roles/ubuntu/tasks/locale.yml +++ b/server/ansible/roles/ubuntu/tasks/locale.yml @@ -1,7 +1,7 @@ --- - name: locale | set timezone community.general.timezone: - name: "{{ timezone | default('Europe/Paris') }}" + name: "{{ timezone | default('${TIMEZONE}') }}" - name: locale | copy timesyncd config ansible.builtin.copy: