after migration
This commit is contained in:
@@ -40,8 +40,11 @@ node):
|
|||||||
trade_hub_postgres_password: "choose-something-strong"
|
trade_hub_postgres_password: "choose-something-strong"
|
||||||
```
|
```
|
||||||
|
|
||||||
If it is omitted, the role falls back to `POSTGRES_PASSWORD` from the control
|
If it is omitted, the role falls back to the play variable `POSTGRES_PASSWORD`,
|
||||||
node environment, then to the development default `sc_inventory_dev`.
|
then to `POSTGRES_PASSWORD` from the control node environment, then to the
|
||||||
|
development default `sc_inventory_dev`. If the password contains characters
|
||||||
|
that are significant in a URL (`@`, `:`, `/`, …), set `trade_hub_database_url`
|
||||||
|
explicitly as well.
|
||||||
|
|
||||||
## Common variables
|
## Common variables
|
||||||
|
|
||||||
@@ -57,7 +60,7 @@ node environment, then to the development default `sc_inventory_dev`.
|
|||||||
| `trade_hub_postgres_image` | `docker.io/library/postgres:16-alpine` | Database image |
|
| `trade_hub_postgres_image` | `docker.io/library/postgres:16-alpine` | Database image |
|
||||||
| `trade_hub_postgres_user` | `sc_inventory` | Database user |
|
| `trade_hub_postgres_user` | `sc_inventory` | Database user |
|
||||||
| `trade_hub_postgres_db` | `sc_inventory` | Database name |
|
| `trade_hub_postgres_db` | `sc_inventory` | Database name |
|
||||||
| `trade_hub_postgres_password` | env `POSTGRES_PASSWORD` or `sc_inventory_dev` | Database password |
|
| `trade_hub_postgres_password` | play var/env `POSTGRES_PASSWORD` or `sc_inventory_dev` | Database password |
|
||||||
| `trade_hub_network` | `sc-inventory` | Podman network name |
|
| `trade_hub_network` | `sc-inventory` | Podman network name |
|
||||||
| `trade_hub_volume` | `sc-inventory-data` | PostgreSQL data volume |
|
| `trade_hub_volume` | `sc-inventory-data` | PostgreSQL data volume |
|
||||||
| `trade_hub_frontend_bind` | `0.0.0.0` | Address the frontend publishes on |
|
| `trade_hub_frontend_bind` | `0.0.0.0` | Address the frontend publishes on |
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ trade_hub_frontend_container: sc-inventory-frontend
|
|||||||
# Database.
|
# Database.
|
||||||
trade_hub_postgres_user: sc_inventory
|
trade_hub_postgres_user: sc_inventory
|
||||||
trade_hub_postgres_db: sc_inventory
|
trade_hub_postgres_db: sc_inventory
|
||||||
trade_hub_postgres_password: "{{ lookup('env', 'POSTGRES_PASSWORD') | default('sc_inventory_dev', true) }}"
|
trade_hub_postgres_password: "{{ POSTGRES_PASSWORD | default(lookup('env', 'POSTGRES_PASSWORD'), true) | default('sc_inventory_dev', true) }}"
|
||||||
trade_hub_database_url: "postgresql+psycopg://{{ trade_hub_postgres_user }}:{{ trade_hub_postgres_password }}@db:5432/{{ trade_hub_postgres_db }}"
|
trade_hub_database_url: "postgresql+psycopg://{{ trade_hub_postgres_user }}:{{ trade_hub_postgres_password }}@db:5432/{{ trade_hub_postgres_db }}"
|
||||||
trade_hub_db_wait_seconds: 60
|
trade_hub_db_wait_seconds: 60
|
||||||
|
|
||||||
|
|||||||
@@ -31,7 +31,6 @@
|
|||||||
podman is not installed on {{ inventory_hostname }}. Install it first
|
podman is not installed on {{ inventory_hostname }}. Install it first
|
||||||
(for example with the "packages" role) or run this role with
|
(for example with the "packages" role) or run this role with
|
||||||
-e trade_hub_install_podman=true.
|
-e trade_hub_install_podman=true.
|
||||||
quiet: true
|
|
||||||
|
|
||||||
- name: Remove the legacy Apache container when requested
|
- name: Remove the legacy Apache container when requested
|
||||||
containers.podman.podman_container:
|
containers.podman.podman_container:
|
||||||
@@ -122,7 +121,6 @@
|
|||||||
trade_hub_build_images is false but {{ trade_hub_backend_image }}:{{
|
trade_hub_build_images is false but {{ trade_hub_backend_image }}:{{
|
||||||
trade_hub_image_tag }} and/or {{ trade_hub_frontend_image }}:{{
|
trade_hub_image_tag }} and/or {{ trade_hub_frontend_image }}:{{
|
||||||
trade_hub_image_tag }} are missing on {{ inventory_hostname }}.
|
trade_hub_image_tag }} are missing on {{ inventory_hostname }}.
|
||||||
quiet: true
|
|
||||||
when: not trade_hub_build_images | bool
|
when: not trade_hub_build_images | bool
|
||||||
|
|
||||||
- name: Record whether the application containers need to be recreated
|
- name: Record whether the application containers need to be recreated
|
||||||
|
|||||||
Reference in New Issue
Block a user