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
command: >
/usr/pgsql-13/bin/pg_dump
/usr/pgsql-14/bin/pg_dump
--clean
--create
--host={{ documize_db_server }}

@ -5,7 +5,7 @@
name:
- tar
- zstd
- postgresql13
- postgresql14
tags: 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"
{% elif documize_db_engine == 'postgres' %}
{% 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 \
--create \
--username={{ documize_db_user | quote }} \
--host={{ documize_db_server | quote }} \
{{ documize_db_name | quote }} | \
{% 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 %}
zstd -c > "{{ documize_root_dir }}/backup/{{ documize_db_name }}.sql.zst"
{% endif %}

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

@ -2,7 +2,7 @@
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 \
--create \
--username={{ funkwhale_db_user | quote }} \

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

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

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

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

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

@ -13,7 +13,7 @@
alternatives:
name: psql-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
tags: matrix

@ -2,7 +2,7 @@
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 \
--create \
--username={{ synapse_pg_db_user }} \

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

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

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

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

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

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

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

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

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

@ -179,10 +179,13 @@ server {
# Hide some headers sent by the backend
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 Pragma;
proxy_hide_header Expires;
proxy_hide_header Content-Security-Policy;
{% endif %}
{% for header in vhost.headers.keys() %}
proxy_hide_header {{ header }};
{% endfor %}

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

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

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

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

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

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

@ -1,9 +1,9 @@
[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
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
includepkgs = postgresql13 postgresql13-libs
includepkgs = postgresql14 postgresql14-libs
{% 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
module_hotfixes = true

@ -1,3 +1,3 @@
---
# 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
PGPASSWORD={{ wapt_db_pass | quote }} /usr/pgsql-13/bin/pg_dump \
PGPASSWORD={{ wapt_db_pass | quote }} /usr/pgsql-14/bin/pg_dump \
--clean \
--create \
--username={{ wapt_db_user | quote }} \

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

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

Loading…
Cancel
Save