Update to 2021-10-14 15:00

master
Daniel Berteaud 3 years ago
parent 990608fbeb
commit 14548481a1
  1. 2
      roles/documize/tasks/archive_pre.yml
  2. 2
      roles/documize/tasks/install.yml
  3. 4
      roles/documize/templates/pre-backup.j2
  4. 2
      roles/funkwhale/tasks/archive_pre.yml
  5. 2
      roles/funkwhale/templates/pre-backup.sh.j2
  6. 2
      roles/funkwhale/vars/RedHat-7.yml
  7. 2
      roles/funkwhale/vars/RedHat-8.yml
  8. 2
      roles/mailman/tasks/archive_pre.yml
  9. 4
      roles/mailman/templates/pre-backup.sh.j2
  10. 2
      roles/matrix_synapse/tasks/archive_pre.yml
  11. 2
      roles/matrix_synapse/tasks/install.yml
  12. 2
      roles/matrix_synapse/templates/pre-backup.sh.j2
  13. 2
      roles/matrix_synapse/vars/RedHat-7.yml
  14. 2
      roles/matrix_synapse/vars/RedHat-8.yml
  15. 2
      roles/mayan_edms/tasks/archive_pre.yml
  16. 2
      roles/mayan_edms/tasks/install.yml
  17. 2
      roles/mayan_edms/templates/pre_backup.sh.j2
  18. 2
      roles/miniflux/tasks/archive_pre.yml
  19. 2
      roles/miniflux/tasks/install.yml
  20. 2
      roles/miniflux/templates/pre-backup.j2
  21. 1
      roles/nginx/defaults/main.yml
  22. 5
      roles/nginx/templates/ansible_conf.d/30-vhosts.conf.j2
  23. 4
      roles/paperless_ng/tasks/archive_pre.yml
  24. 2
      roles/paperless_ng/templates/pre-backup.j2
  25. 2
      roles/paperless_ng/vars/RedHat-8.yml
  26. 4
      roles/papermerge/tasks/archive_pre.yml
  27. 2
      roles/papermerge/tasks/install.yml
  28. 2
      roles/psono/tasks/archive_pre.yml
  29. 6
      roles/repo_base/templates/postgresql-client.repo.j2
  30. 2
      roles/repo_samba4/defaults/main.yml
  31. 2
      roles/wapt_server/templates/pre-backup.sh.j2
  32. 2
      roles/wapt_server/vars/RedHat-7.yml
  33. 2
      roles/wapt_server/vars/RedHat-8.yml

@ -10,7 +10,7 @@
- name: Backup the database - name: Backup the database
command: > command: >
/usr/pgsql-13/bin/pg_dump /usr/pgsql-14/bin/pg_dump
--clean --clean
--create --create
--host={{ documize_db_server }} --host={{ documize_db_server }}

@ -5,7 +5,7 @@
name: name:
- tar - tar
- zstd - zstd
- postgresql13 - postgresql14
tags: documize tags: documize
- name: Download documize - name: Download documize

@ -13,14 +13,14 @@ set -eo pipefail
--add-drop-table {{ documize_db_name | quote }} | zstd -c > "{{ documize_root_dir }}/backup/{{ documize_db_name }}.sql.zst" --add-drop-table {{ documize_db_name | quote }} | zstd -c > "{{ documize_root_dir }}/backup/{{ documize_db_name }}.sql.zst"
{% elif documize_db_engine == 'postgres' %} {% elif documize_db_engine == 'postgres' %}
{% if documize_db_server not in ['127.0.0.1','localhost'] %} {% if documize_db_server not in ['127.0.0.1','localhost'] %}
PGPASSWORD={{ documize_db_pass | quote }} /usr/pgsql-13/bin/pg_dump \ PGPASSWORD={{ documize_db_pass | quote }} /usr/pgsql-14/bin/pg_dump \
--clean \ --clean \
--create \ --create \
--username={{ documize_db_user | quote }} \ --username={{ documize_db_user | quote }} \
--host={{ documize_db_server | quote }} \ --host={{ documize_db_server | quote }} \
{{ documize_db_name | quote }} | \ {{ documize_db_name | quote }} | \
{% else %} {% else %}
su - postgres -c "/usr/pgsql-13/bin/pg_dump --clean --create {{ documize_db_name | quote }}" | \ su - postgres -c "/usr/pgsql-14/bin/pg_dump --clean --create {{ documize_db_name | quote }}" | \
{% endif %} {% endif %}
zstd -c > "{{ documize_root_dir }}/backup/{{ documize_db_name }}.sql.zst" zstd -c > "{{ documize_root_dir }}/backup/{{ documize_db_name }}.sql.zst"
{% endif %} {% endif %}

@ -19,7 +19,7 @@
- name: Archive a database dump - name: Archive a database dump
command: > command: >
/usr/pgsql-13/bin/pg_dump /usr/pgsql-14/bin/pg_dump
--clean --clean
--create --create
--host={{ funkwhale_db_server }} --host={{ funkwhale_db_server }}

@ -2,7 +2,7 @@
set -eo pipefail set -eo pipefail
PGPASSWORD={{ funkwhale_db_pass | quote }} /usr/pgsql-13/bin/pg_dump \ PGPASSWORD={{ funkwhale_db_pass | quote }} /usr/pgsql-14/bin/pg_dump \
--clean \ --clean \
--create \ --create \
--username={{ funkwhale_db_user | quote }} \ --username={{ funkwhale_db_user | quote }} \

@ -3,7 +3,7 @@
funkwhale_packages: funkwhale_packages:
- gcc - gcc
- git - git
- postgresql13 - postgresql14
- postgresql-devel - postgresql-devel
- openldap-devel - openldap-devel
- cyrus-sasl-devel - cyrus-sasl-devel

@ -3,7 +3,7 @@
funkwhale_packages: funkwhale_packages:
- gcc - gcc
- git - git
- postgresql13 - postgresql14
- postgresql-devel - postgresql-devel
- openldap-devel - openldap-devel
- cyrus-sasl-devel - cyrus-sasl-devel

@ -20,7 +20,7 @@
- name: Dump the database - name: Dump the database
command: > command: >
/usr/pgsql-13/bin/pg_dump /usr/pgsql-14/bin/pg_dump
--clean --clean
--create --create
--host={{ mailman_db_server | quote }} --host={{ mailman_db_server | quote }}

@ -6,7 +6,7 @@ set -eo pipefail
{% if mailman_db_engine == 'postgres' %} {% if mailman_db_engine == 'postgres' %}
{% if mailman_db_server not in ['localhost', '127.0.0.1'] %} {% if mailman_db_server not in ['localhost', '127.0.0.1'] %}
PGPASSWORD={{ mailman_db_pass | quote }} \ PGPASSWORD={{ mailman_db_pass | quote }} \
/usr/pgsql-13/bin/pg_dump \ /usr/pgsql-14/bin/pg_dump \
--clean \ --clean \
--create \ --create \
--username={{ mailman_db_user | quote }} \ --username={{ mailman_db_user | quote }} \
@ -15,7 +15,7 @@ PGPASSWORD={{ mailman_db_pass | quote }} \
{{ mailman_db_name[db] }} | \ {{ mailman_db_name[db] }} | \
zstd -c > {{ mailman_root_dir }}/backup/{{ mailman_db_name[db] }}.sql.zst zstd -c > {{ mailman_root_dir }}/backup/{{ mailman_db_name[db] }}.sql.zst
{% else %} {% else %}
su - postgres -c "/usr/pgsql-13/bin/pg_dump --clear {{ mailman_db_name[db] }}" | \ su - postgres -c "/usr/pgsql-14/bin/pg_dump --clear {{ mailman_db_name[db] }}" | \
{% endif %} {% endif %}
zstd -c > {{ mailman_root_dir }}/backup/{{ mailman_db_name[db] }}.sql.zst zstd -c > {{ mailman_root_dir }}/backup/{{ mailman_db_name[db] }}.sql.zst
{% else %} {% else %}

@ -19,7 +19,7 @@
- name: Archive a database dump - name: Archive a database dump
shell: > shell: >
/usr/pgsql-13/bin/pg_dump /usr/pgsql-14/bin/pg_dump
--clean --clean
--create --create
--host={{ synapse_pg_db_server }} --host={{ synapse_pg_db_server }}

@ -13,7 +13,7 @@
alternatives: alternatives:
name: psql-pg_config name: psql-pg_config
link: /bin/pg_config link: /bin/pg_config
path: /usr/pgsql-13/bin/pg_config path: /usr/pgsql-14/bin/pg_config
when: not synapse_pg_config.stat.exists when: not synapse_pg_config.stat.exists
tags: matrix tags: matrix

@ -2,7 +2,7 @@
set -eo pipefail set -eo pipefail
PGPASSWORD='{{ synapse_pg_db_pass }}' /usr/pgsql-13/bin/pg_dump \ PGPASSWORD='{{ synapse_pg_db_pass }}' /usr/pgsql-14/bin/pg_dump \
--clean \ --clean \
--create \ --create \
--username={{ synapse_pg_db_user }} \ --username={{ synapse_pg_db_user }} \

@ -17,7 +17,7 @@ synapse_packages:
- libtool - libtool
- autoconf - autoconf
- automake - automake
- postgresql13 - postgresql14
- postgresql-devel - postgresql-devel
- libpqxx-devel - libpqxx-devel
- jemalloc - jemalloc

@ -17,7 +17,7 @@ synapse_packages:
- libtool - libtool
- autoconf - autoconf
- automake - automake
- postgresql13 - postgresql14
- postgresql-devel - postgresql-devel
- jemalloc - jemalloc
- python3-virtualenv - python3-virtualenv

@ -41,7 +41,7 @@
- name: Dump the database - name: Dump the database
command: > command: >
/usr/pgsql-13/bin/pg_dump /usr/pgsql-14/bin/pg_dump
--clean --clean
--create --create
--host={{ mayan_db_server | quote }} --host={{ mayan_db_server | quote }}

@ -50,7 +50,7 @@
yum: yum:
name: name:
- postgresql-devel - postgresql-devel
- postgresql13 - postgresql14
- python-psycopg2 - python-psycopg2
when: mayan_db_engine == 'postgresql' when: mayan_db_engine == 'postgresql'
tags: mayan tags: mayan

@ -9,7 +9,7 @@ set -eo pipefail
--quick --single-transaction \ --quick --single-transaction \
--add-drop-table {{ mayan_db_name | quote }} | zstd -c > {{ mayan_root_dir }}/backup/{{ mayan_db_name }}.sql.zst --add-drop-table {{ mayan_db_name | quote }} | zstd -c > {{ mayan_root_dir }}/backup/{{ mayan_db_name }}.sql.zst
{% else %} {% else %}
PGPASSWORD={{ mayan_db_pass | quote }} /usr/pgsql-13/bin/pg_dump \ PGPASSWORD={{ mayan_db_pass | quote }} /usr/pgsql-14/bin/pg_dump \
--clean \ --clean \
--create \ --create \
--username={{ mayan_db_user | quote }} \ --username={{ mayan_db_user | quote }} \

@ -10,7 +10,7 @@
- name: Backup the database - name: Backup the database
command: > command: >
/usr/pgsql-13/bin/pg_dump /usr/pgsql-14/bin/pg_dump
--clean --clean
--create --create
--host={{ miniflux_db_server }} --host={{ miniflux_db_server }}

@ -5,7 +5,7 @@
name: name:
- tar - tar
- zstd - zstd
- postgresql13 - postgresql14
tags: miniflux tags: miniflux
- name: Download miniflux - name: Download miniflux

@ -2,7 +2,7 @@
set -eo pipefail set -eo pipefail
PGPASSWORD='{{ miniflux_db_pass }}' /usr/pgsql-13/bin/pg_dump \ PGPASSWORD='{{ miniflux_db_pass }}' /usr/pgsql-14/bin/pg_dump \
--clean \ --clean \
--create \ --create \
--username={{ miniflux_db_user | quote }} \ --username={{ miniflux_db_user | quote }} \

@ -56,6 +56,7 @@ nginx_default_vhost_base:
X-Forwarded-For: '$proxy_add_x_forwarded_for' X-Forwarded-For: '$proxy_add_x_forwarded_for'
X-Real-IP: '$remote_addr' X-Real-IP: '$remote_addr'
X-Forwarded-Proto: '$scheme' X-Forwarded-Proto: '$scheme'
X-Scheme: '$scheme'
X-Forwarded-Host: '$host' X-Forwarded-Host: '$host'
X-Forwarded-Port: '$server_port' X-Forwarded-Port: '$server_port'
Host: '$host' Host: '$host'

@ -179,10 +179,13 @@ server {
# Hide some headers sent by the backend # Hide some headers sent by the backend
proxy_hide_header X-Powered-By; proxy_hide_header X-Powered-By;
proxy_hide_header Content-Security-Policy;
{% if vhost.perf %}
# Cache control and expiration is managed by the proxy
proxy_hide_header Cache-Control; proxy_hide_header Cache-Control;
proxy_hide_header Pragma; proxy_hide_header Pragma;
proxy_hide_header Expires; proxy_hide_header Expires;
proxy_hide_header Content-Security-Policy; {% endif %}
{% for header in vhost.headers.keys() %} {% for header in vhost.headers.keys() %}
proxy_hide_header {{ header }}; proxy_hide_header {{ header }};
{% endfor %} {% endfor %}

@ -7,7 +7,7 @@
- name: Install postgresql client - name: Install postgresql client
package: package:
name: name:
- postgresql13 - postgresql14
tags: ged tags: ged
- name: Archive previous version - name: Archive previous version
@ -25,7 +25,7 @@
- name: Dump the database - name: Dump the database
command: > command: >
/usr/pgsql-13/bin/pg_dump /usr/pgsql-14/bin/pg_dump
--clean --clean
--create --create
--host={{ paperless_db_server | quote }} --host={{ paperless_db_server | quote }}

@ -2,7 +2,7 @@
set -eo pipefail set -eo pipefail
PGPASSWORD='{{ paperless_db_pass }}' /usr/pgsql-13/bin/pg_dump \ PGPASSWORD='{{ paperless_db_pass }}' /usr/pgsql-14/bin/pg_dump \
--clean \ --clean \
--create \ --create \
--username={{ paperless_db_user | quote }} \ --username={{ paperless_db_user | quote }} \

@ -21,4 +21,4 @@ paperless_packages:
- policycoreutils - policycoreutils
- unpaper - unpaper
- ghostscript - ghostscript
- postgresql13 - postgresql14

@ -7,7 +7,7 @@
- name: Install postgresql client - name: Install postgresql client
package: package:
name: name:
- postgresql13 - postgresql14
tags: ged tags: ged
- name: Stop sevices during upgrade - name: Stop sevices during upgrade
@ -31,7 +31,7 @@
- name: Dump the database - name: Dump the database
command: > command: >
/usr/pgsql-13/bin/pg_dump /usr/pgsql-14/bin/pg_dump
--clean --clean
--create --create
--host={{ papermerge_db_server | quote }} --host={{ papermerge_db_server | quote }}

@ -9,7 +9,7 @@
- python-setuptools - python-setuptools
- python-psycopg2 - python-psycopg2
- postgresql-devel - postgresql-devel
- postgresql13 - postgresql14
- tesseract - tesseract
- tesseract-langpack-fra - tesseract-langpack-fra
- tesseract-langpack-deu - tesseract-langpack-deu

@ -26,7 +26,7 @@
- name: Archive database - name: Archive database
command: > command: >
/usr/pgsql-13/bin/pg_dump /usr/pgsql-14/bin/pg_dump
--clean --clean
--create --create
--host={{ psono_db_server }} --host={{ psono_db_server }}

@ -1,9 +1,9 @@
[postgresql-client] [postgresql-client]
baseurl = https://download.postgresql.org/pub/repos/yum/13/redhat/rhel-$releasever-$basearch baseurl = https://download.postgresql.org/pub/repos/yum/14/redhat/rhel-$releasever-$basearch
gpgcheck = 1 gpgcheck = 1
gpgkey = https://download.postgresql.org/pub/repos/yum/RPM-GPG-KEY-PGDG-13 gpgkey = https://download.postgresql.org/pub/repos/yum/RPM-GPG-KEY-PGDG-14
name = PostgreSQL Client name = PostgreSQL Client
includepkgs = postgresql13 postgresql13-libs includepkgs = postgresql14 postgresql14-libs
{% if ansible_os_family == 'RedHat' and ansible_distribution_major_version is version('8', '>=') %} {% if ansible_os_family == 'RedHat' and ansible_distribution_major_version is version('8', '>=') %}
# Workaround a bug in dnf which would make the default module mask packages from postgres repo # Workaround a bug in dnf which would make the default module mask packages from postgres repo
module_hotfixes = true module_hotfixes = true

@ -1,3 +1,3 @@
--- ---
# Select a branch from https://samba.tranquil.it/centos7/ or https://samba.tranquil.it/centos7/ # Select a branch from https://samba.tranquil.it/centos7/ or https://samba.tranquil.it/centos7/
samba_major_version: samba-{{ (ansible_distribution_major_version is version('8','<')) | ternary('4.12.15','4.14.7') }} samba_major_version: samba-{{ (ansible_distribution_major_version is version('8','<')) | ternary('4.12.15','4.14.8') }}

@ -2,7 +2,7 @@
set -eo pipefail set -eo pipefail
PGPASSWORD={{ wapt_db_pass | quote }} /usr/pgsql-13/bin/pg_dump \ PGPASSWORD={{ wapt_db_pass | quote }} /usr/pgsql-14/bin/pg_dump \
--clean \ --clean \
--create \ --create \
--username={{ wapt_db_user | quote }} \ --username={{ wapt_db_user | quote }} \

@ -3,5 +3,5 @@
wapt_packages: wapt_packages:
- tis-waptserver - tis-waptserver
- tis-waptsetup - tis-waptsetup
- postgresql13 - postgresql14
- python-psycopg2 # Needed to manage PG with ansible - python-psycopg2 # Needed to manage PG with ansible

@ -3,5 +3,5 @@
wapt_packages: wapt_packages:
- tis-waptserver - tis-waptserver
# - tis-waptsetup # - tis-waptsetup
- postgresql13 - postgresql14
- python3-psycopg2 # Needed to manage PG with ansible - python3-psycopg2 # Needed to manage PG with ansible

Loading…
Cancel
Save