breaking(postgres): update PostgreSQL volume mount path and default image version
- Change PostgreSQL volume mount path from `/var/lib/postgresql/data` to `/var/lib/postgresql` across README files and role defaults - Upgrade default PostgreSQL Docker image from `postgres:14-alpine` to `postgres:18-alpine` - Update documentation and configuration defaults in `README.md`, `roles/docker_compose/README.md`, `roles/postgres/README.md`, and `roles/postgres/defaults/main.yml`
This commit is contained in:
5 files changed
+7
-5
No files matched your search
@@ -38,3 +38,5 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
- Updated `list-hosts` command to display `hosting_provider` field, increased customer column width, and fixed IFS handling for proper field separation.
|
||||
- Updated Odoo scripts to use standard PostgreSQL environment variables (`PGHOST`, `PGUSER`, `PGPASSWORD`) instead of legacy variables (`HOST`, `USER`, `PASSWORD`).
|
||||
- Updated `dev-vuepress` task to automatically open the browser after starting the development server.
|
||||
- Updated PostgreSQL volume mount path from `/var/lib/postgresql/data` to `/var/lib/postgresql` in `README.md`, `roles/docker_compose/README.md`, `roles/postgres/README.md`, and `roles/postgres/defaults/main.yml`.
|
||||
- Updated default PostgreSQL image version from `postgres:14-alpine` to `postgres:18-alpine` in `roles/postgres/README.md`.
|
||||
@@ -233,7 +233,7 @@ Mount the folder without subfolder.
|
||||
|
||||
```yml
|
||||
volumes:
|
||||
- "{{ postgres_volume_name }}:/var/lib/postgresql/data"
|
||||
- "{{ postgres_volume_name }}:/var/lib/postgresql"
|
||||
```
|
||||
|
||||
For Ansible config files use file mounts.
|
||||
|
||||
@@ -25,7 +25,7 @@ docker_compose_definition:
|
||||
db:
|
||||
image: postgres
|
||||
volumes:
|
||||
- ./data/db:/var/lib/postgresql/data
|
||||
- ./data/db:/var/lib/postgresql
|
||||
environment:
|
||||
- POSTGRES_DB=postgres
|
||||
- POSTGRES_USER=postgres
|
||||
|
||||
@@ -14,7 +14,7 @@ Configure the role.
|
||||
|
||||
```yml
|
||||
# https://hub.docker.com/_/postgres
|
||||
postgres_image: postgres:14-alpine
|
||||
postgres_image: postgres:18-alpine
|
||||
postgres_build_image: true # default: false
|
||||
postgres_description: Database for website # default: PostgreSQL
|
||||
postgres_hostname: postgres01
|
||||
@@ -22,7 +22,7 @@ postgres_volume_name: postgres_data01 # default: "{{ postgres_hostname }}"
|
||||
postgres_data_dir: /usr/share/postgres # default: "/usr/share/{{ postgres_hostname }}"
|
||||
postgres_scripts_dir: /home/odoo-prod/bin # default: /usr/local/bin
|
||||
postgres_volumes:
|
||||
- "{{ postgres_data_dir }}/reference-data/data:/mnt/reference-data" # default: "{{ postgres_volume_name }}:/var/lib/postgresql/data"
|
||||
- "{{ postgres_data_dir }}/reference-data/data:/mnt/reference-data" # default: "{{ postgres_volume_name }}:/var/lib/postgresql"
|
||||
postgres_ports:
|
||||
- 127.0.0.1:5433:5432 # default: []
|
||||
postgres_user: example
|
||||
|
||||
@@ -7,7 +7,7 @@ postgres_configmap:
|
||||
postgres_password: "{{ vault_postgres_password }}"
|
||||
postgres_data_dir: /usr/share/{{ postgres_hostname }}
|
||||
postgres_volumes:
|
||||
- "{{ postgres_volume_name }}:/var/lib/postgresql/data"
|
||||
- "{{ postgres_volume_name }}:/var/lib/postgresql"
|
||||
postgres_ports: []
|
||||
postgres_wal_level: replica
|
||||
postgres_max_connections: 100
|
||||
|
||||
Reference in new issue
Block a user