Skip to content

fix(configure): honor deploy.yml db credentials and pass --instance-dir#46

Merged
nilshamerlinck merged 1 commit into
trobz:mainfrom
dzungtran89:T68053
Jun 29, 2026
Merged

fix(configure): honor deploy.yml db credentials and pass --instance-dir#46
nilshamerlinck merged 1 commit into
trobz:mainfrom
dzungtran89:T68053

Conversation

@dzungtran89

Copy link
Copy Markdown
Contributor

What

Two configure fixes so the generated Odoo config and the host state match the
values supplied in deploy.yml.

Contents

  • The Postgres role is created using the db_user and db_password from
    deploy.yml instead of always using the instance name with a random
    password. A missing or blank password falls back to a generated one (printed
    once), so a misconfigured value can't silently set an unusable password.
  • odoo-config is now called with --instance-dir, so it derives the log
    file, data dir and sentry dir from the instance's home directory.

Forge-ID: 68053

- Create the Postgres role using the `db_user`/`db_password` forwarded
  in `deploy.yml` (random fallback when absent), so `odoo.conf` and the
  actual role no longer disagree.
- Pass `--instance-dir` to odoo-config so it derives `logfile`,
  `data_dir` and `sentry_odoo_dir` from the instance home.

Forge-ID: 68053
@nilshamerlinck nilshamerlinck merged commit 407ef7e into trobz:main Jun 29, 2026
7 checks passed
@dzungtran89 dzungtran89 deleted the T68053 branch June 29, 2026 09:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants