apps(farrisilk): name Odoo's database odoo (align with the BI grants + Metabase source)

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).
This commit is contained in:
Lance Walters 2026-11-22 02:25:09 -05:00
commit 4891694f6f
2 changed files with 5 additions and 5 deletions

View file

@ -2,7 +2,7 @@
# construction, so a restart never re-initialises a live database. # construction, so a restart never re-initialises a live database.
# #
# 1. wait for Postgres # 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 # --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 # 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) # on and no ordering race between a Job and the Deployment)
@ -35,7 +35,7 @@ data:
PORT = int(os.environ.get("DB_PORT", "5432")) PORT = int(os.environ.get("DB_PORT", "5432"))
SUPER_USER = os.environ["PG_SUPERUSER"] SUPER_USER = os.environ["PG_SUPERUSER"]
SUPER_PW = os.environ["PG_SUPERPASS"] 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" CONF = "/etc/odoo-runtime/odoo.conf"
ADMIN_LOGIN = os.environ["ODOO_ADMIN_LOGIN"] ADMIN_LOGIN = os.environ["ODOO_ADMIN_LOGIN"]
ADMIN_PASSWORD = os.environ["ODOO_ADMIN_PASSWORD"] ADMIN_PASSWORD = os.environ["ODOO_ADMIN_PASSWORD"]

View file

@ -88,10 +88,10 @@ spec:
data_dir = /var/lib/odoo data_dir = /var/lib/odoo
db_host = ${DB_HOST} db_host = ${DB_HOST}
db_port = ${DB_PORT} db_port = ${DB_PORT}
db_name = farrisilk db_name = odoo
db_user = odoo db_user = odoo
db_password = ${ODOO_DB_PASSWORD} db_password = ${ODOO_DB_PASSWORD}
dbfilter = ^farrisilk\$ dbfilter = ^odoo\$
list_db = False list_db = False
proxy_mode = True proxy_mode = True
workers = 0 workers = 0
@ -138,7 +138,7 @@ spec:
- name: DB_PORT - name: DB_PORT
value: "5432" value: "5432"
- name: ODOO_DB_NAME - name: ODOO_DB_NAME
value: farrisilk value: odoo
- name: PG_SUPERUSER - name: PG_SUPERUSER
valueFrom: valueFrom:
secretKeyRef: secretKeyRef: