Просмотр исходного кода

Add support for postgres 13

pull/661/head
Dan Arnfield 5 лет назад
Родитель
Сommit
3a3383fada
3 измененных файлов: 10 добавлений и 4 удалений
  1. +3
    -3
      CHANGELOG.md
  2. +2
    -1
      roles/matrix-postgres/defaults/main.yml
  3. +5
    -0
      roles/matrix-postgres/tasks/util/detect_existing_postgres_version.yml

+ 3
- 3
CHANGELOG.md Просмотреть файл

@@ -307,11 +307,11 @@ Additionally, Postgres [upgrading](docs/maintenance-postgres.md#upgrading-postgr

# 2019-10-04

## Postgres 12 support
## Postgres 13 support

The playbook now installs [Postgres 12](https://www.postgresql.org/about/news/1976/) by default.
The playbook now installs [Postgres 13](https://www.postgresql.org/about/news/postgresql-13-released-2077/) by default.

If you have have an existing setup, it's likely running on an older Postgres version (9.x, 10.x or 11.x). You can easily upgrade by following the [upgrading PostgreSQL guide](docs/maintenance-postgres.md#upgrading-postgresql).
If you have have an existing setup, it's likely running on an older Postgres version (9.x, 10.x, 11.x, or 12.x). You can easily upgrade by following the [upgrading PostgreSQL guide](docs/maintenance-postgres.md#upgrading-postgresql).


# 2019-10-03


+ 2
- 1
roles/matrix-postgres/defaults/main.yml Просмотреть файл

@@ -12,7 +12,8 @@ matrix_postgres_docker_image_v9: "postgres:9.6.19-alpine"
matrix_postgres_docker_image_v10: "postgres:10.14-alpine"
matrix_postgres_docker_image_v11: "postgres:11.9-alpine"
matrix_postgres_docker_image_v12: "postgres:12.4-alpine"
matrix_postgres_docker_image_latest: "{{ matrix_postgres_docker_image_v12 }}"
matrix_postgres_docker_image_v13: "postgres:13.0-alpine"
matrix_postgres_docker_image_latest: "{{ matrix_postgres_docker_image_v13 }}"

# This variable is assigned at runtime. Overriding its value has no effect.
matrix_postgres_docker_image_to_use: '{{ matrix_postgres_docker_image_latest }}'


+ 5
- 0
roles/matrix-postgres/tasks/util/detect_existing_postgres_version.yml Просмотреть файл

@@ -49,3 +49,8 @@
set_fact:
matrix_postgres_detected_version_corresponding_docker_image: "{{ matrix_postgres_docker_image_v11 }}"
when: "matrix_postgres_detected_version == '11' or matrix_postgres_detected_version.startswith('11.')"

- name: Determine corresponding Docker image to detected version (use 12.x, if detected)
set_fact:
matrix_postgres_detected_version_corresponding_docker_image: "{{ matrix_postgres_docker_image_v12 }}"
when: "matrix_postgres_detected_version == '12' or matrix_postgres_detected_version.startswith('12.')"

Загрузка…
Отмена
Сохранить