From 4891694f6f2db466c717073b5a4667f8cfd4a78d Mon Sep 17 00:00:00 2001 From: Lance Walters Date: Sun, 22 Nov 2026 02:25:09 -0500 Subject: [PATCH] apps(farrisilk): name Odoo's database `odoo` (align with the BI grants + Metabase source) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The card's build section names db `odoo` (owner odoo) and points Metabase at pg.../odoo, while its Odoo config line said db_name=farrisilk — the two cannot both hold. Aligned on `odoo`: db_name/dbfilter in odoo.conf and the init script's ODOO_DB_NAME. The renamed database kept its data (partner 7, product template 1, base+web+product installed). --- apps/base/farrisilk/odoo-init.yaml | 4 ++-- apps/base/farrisilk/odoo.yaml | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/apps/base/farrisilk/odoo-init.yaml b/apps/base/farrisilk/odoo-init.yaml index 2b64e84..147202c 100644 --- a/apps/base/farrisilk/odoo-init.yaml +++ b/apps/base/farrisilk/odoo-init.yaml @@ -2,7 +2,7 @@ # construction, so a restart never re-initialises a live database. # # 1. wait for Postgres -# 2. if the `farrisilk` database has no tables: `odoo -i base,web +# 2. if the `odoo` database has no tables: `odoo -i base,web # --without-demo=all --stop-after-init` (the "init once" step, done by the # pod rather than by a separate Job so there is exactly one thing to wait # on and no ordering race between a Job and the Deployment) @@ -35,7 +35,7 @@ data: PORT = int(os.environ.get("DB_PORT", "5432")) SUPER_USER = os.environ["PG_SUPERUSER"] SUPER_PW = os.environ["PG_SUPERPASS"] - DB = os.environ.get("ODOO_DB_NAME", "farrisilk") + DB = os.environ.get("ODOO_DB_NAME", "odoo") CONF = "/etc/odoo-runtime/odoo.conf" ADMIN_LOGIN = os.environ["ODOO_ADMIN_LOGIN"] ADMIN_PASSWORD = os.environ["ODOO_ADMIN_PASSWORD"] diff --git a/apps/base/farrisilk/odoo.yaml b/apps/base/farrisilk/odoo.yaml index 2e89fcb..4c93f0f 100644 --- a/apps/base/farrisilk/odoo.yaml +++ b/apps/base/farrisilk/odoo.yaml @@ -88,10 +88,10 @@ spec: data_dir = /var/lib/odoo db_host = ${DB_HOST} db_port = ${DB_PORT} - db_name = farrisilk + db_name = odoo db_user = odoo db_password = ${ODOO_DB_PASSWORD} - dbfilter = ^farrisilk\$ + dbfilter = ^odoo\$ list_db = False proxy_mode = True workers = 0 @@ -138,7 +138,7 @@ spec: - name: DB_PORT value: "5432" - name: ODOO_DB_NAME - value: farrisilk + value: odoo - name: PG_SUPERUSER valueFrom: secretKeyRef: