From df6024ad1328b0587c12012809bf5a75428aab5e Mon Sep 17 00:00:00 2001 From: Maxime Chambreuil Date: Wed, 28 Apr 2021 14:54:59 -0500 Subject: [PATCH 1/2] [FIX] Secrets --- roles/odoo/templates/odoo_deployment_config.j2 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/roles/odoo/templates/odoo_deployment_config.j2 b/roles/odoo/templates/odoo_deployment_config.j2 index 87144ff..24edfb3 100644 --- a/roles/odoo/templates/odoo_deployment_config.j2 +++ b/roles/odoo/templates/odoo_deployment_config.j2 @@ -39,7 +39,7 @@ spec: - name: PGPASSWORD valueFrom: secretKeyRef: - name: "{{ _postgresql_name }}" + name: "{{ _odoo_name }}-postgresql" key: "database-password" - name: DEFAULTDB value: "{{ _odoo_postgresql_defaultdb }}" @@ -50,12 +50,12 @@ spec: - name: ODOO_ADMIN_PASSWD valueFrom: secretKeyRef: - name: "{{ _odoo_name }}" + name: "{{ _odoo_name }}-odoo" key: "odoo-admin-passwd" - name: ODOO_ADMIN_USER_PASSWORD valueFrom: secretKeyRef: - name: "{{ _odoo_name }}" + name: "{{ _odoo_name }}-odoo" key: "odoo-admin-user-password" - name: ODOO_ADMIN_USER_TIMEZONE value: {{ _odoo_admin_user_timezone }} @@ -66,7 +66,7 @@ spec: - name: ODOO_SMTP_PASSWORD valueFrom: secretKeyRef: - name: "{{ _odoo_name }}" + name: "{{ _odoo_name }}-odoo" key: "odoo-smtp-password" - name: ODOO_SMTP_PORT value: "{{ _odoo_smtp_port }}" From 1e727713a8035569adb9ac1bbc60991889fb4626 Mon Sep 17 00:00:00 2001 From: Maxime Chambreuil Date: Wed, 28 Apr 2021 15:00:40 -0500 Subject: [PATCH 2/2] [FIX] Templates --- roles/odoo/defaults/main.yml | 1 - roles/odoo/templates/odoo_deployment_config.j2 | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/roles/odoo/defaults/main.yml b/roles/odoo/defaults/main.yml index bef9bad..9d6c6d6 100644 --- a/roles/odoo/defaults/main.yml +++ b/roles/odoo/defaults/main.yml @@ -18,7 +18,6 @@ _odoo_memory_request: 512Mi _odoo_postgresql_database_name: "MASTER" _odoo_postgresql_defaultdb: postgres _odoo_postgresql_port: 5432 -_odoo_postgresql_service_name: postgresql _odoo_postgresql_user: odoo _odoo_server_wide_modules: web,monitoring_status _odoo_smtp_password: YWRtaW4= diff --git a/roles/odoo/templates/odoo_deployment_config.j2 b/roles/odoo/templates/odoo_deployment_config.j2 index 24edfb3..4dbe150 100644 --- a/roles/odoo/templates/odoo_deployment_config.j2 +++ b/roles/odoo/templates/odoo_deployment_config.j2 @@ -31,7 +31,7 @@ spec: imagePullPolicy: IfNotPresent env: - name: PGHOST - value: "{{ _odoo_postgresql_service_name }}" + value: "{{ _odoo_name }}-postgresql" - name: PGPORT value: "{{ _odoo_postgresql_port }}" - name: PGUSER