Przeglądaj źródła

Update old references to com.devture.ansible.role.postgres & com.devture.ansible.role.traefik

Provoked by https://github.com/mother-of-all-self-hosting/mash-playbook/pull/280
pull/3578/head
Slavi Pantaleev 1 rok temu
rodzic
commit
ec5e379672
36 zmienionych plików z 44 dodań i 44 usunięć
  1. +6
    -6
      CHANGELOG.md
  2. +1
    -1
      YEAR-IN-REVIEW.md
  3. +1
    -1
      docs/configuring-playbook-postgres-backup.md
  4. +1
    -1
      docs/configuring-playbook-traefik.md
  5. +3
    -3
      docs/maintenance-postgres.md
  6. +1
    -1
      roles/custom/matrix-bot-buscarron/tasks/setup_install.yml
  7. +1
    -1
      roles/custom/matrix-bot-honoroit/tasks/setup_install.yml
  8. +1
    -1
      roles/custom/matrix-bot-matrix-reminder-bot/tasks/setup_install.yml
  9. +1
    -1
      roles/custom/matrix-bot-postmoogle/tasks/setup_install.yml
  10. +1
    -1
      roles/custom/matrix-bridge-appservice-discord/tasks/setup_install.yml
  11. +1
    -1
      roles/custom/matrix-bridge-appservice-irc/tasks/migrate_nedb_to_postgres.yml
  12. +1
    -1
      roles/custom/matrix-bridge-appservice-slack/tasks/migrate_nedb_to_postgres.yml
  13. +1
    -1
      roles/custom/matrix-bridge-go-skype-bridge/tasks/setup_install.yml
  14. +1
    -1
      roles/custom/matrix-bridge-mautrix-discord/tasks/setup_install.yml
  15. +1
    -1
      roles/custom/matrix-bridge-mautrix-facebook/tasks/setup_install.yml
  16. +1
    -1
      roles/custom/matrix-bridge-mautrix-gmessages/tasks/setup_install.yml
  17. +1
    -1
      roles/custom/matrix-bridge-mautrix-googlechat/tasks/setup_install.yml
  18. +1
    -1
      roles/custom/matrix-bridge-mautrix-hangouts/tasks/setup_install.yml
  19. +1
    -1
      roles/custom/matrix-bridge-mautrix-meta-instagram/tasks/install.yml
  20. +1
    -1
      roles/custom/matrix-bridge-mautrix-meta-messenger/tasks/install.yml
  21. +1
    -1
      roles/custom/matrix-bridge-mautrix-signal/tasks/setup_install.yml
  22. +1
    -1
      roles/custom/matrix-bridge-mautrix-slack/tasks/setup_install.yml
  23. +1
    -1
      roles/custom/matrix-bridge-mautrix-telegram/tasks/setup_install.yml
  24. +1
    -1
      roles/custom/matrix-bridge-mautrix-whatsapp/tasks/setup_install.yml
  25. +1
    -1
      roles/custom/matrix-bridge-mx-puppet-discord/tasks/setup_install.yml
  26. +1
    -1
      roles/custom/matrix-bridge-mx-puppet-groupme/tasks/setup_install.yml
  27. +1
    -1
      roles/custom/matrix-bridge-mx-puppet-instagram/tasks/setup_install.yml
  28. +1
    -1
      roles/custom/matrix-bridge-mx-puppet-slack/tasks/setup_install.yml
  29. +1
    -1
      roles/custom/matrix-bridge-mx-puppet-steam/tasks/setup_install.yml
  30. +1
    -1
      roles/custom/matrix-bridge-mx-puppet-twitter/tasks/setup_install.yml
  31. +1
    -1
      roles/custom/matrix-dimension/tasks/setup_install.yml
  32. +1
    -1
      roles/custom/matrix-ma1sd/tasks/setup_install.yml
  33. +1
    -1
      roles/custom/matrix-registration/tasks/setup_install.yml
  34. +1
    -1
      roles/custom/matrix-synapse/tasks/rust-synapse-compress-state/main.yml
  35. +1
    -1
      roles/custom/matrix-synapse/tasks/update_user_password.yml
  36. +2
    -2
      roles/custom/matrix_playbook_migration/tasks/validate_config.yml

+ 6
- 6
CHANGELOG.md Wyświetl plik

@@ -723,7 +723,7 @@ Here are **actions you may wish to take** as a result of this change:


The playbook has provided some hints about [Tuning PostgreSQL](docs/maintenance-postgres.md#tuning-postgresql) for quite a while now. The playbook has provided some hints about [Tuning PostgreSQL](docs/maintenance-postgres.md#tuning-postgresql) for quite a while now.


From now on, the [Postgres Ansible role](https://github.com/devture/com.devture.ansible.role.postgres) automatically tunes your Postgres configuration with the same [calculation logic](https://github.com/le0pard/pgtune/blob/master/src/features/configuration/configurationSlice.js) that powers https://pgtune.leopard.in.ua/.
From now on, the [Postgres Ansible role](https://github.com/mother-of-all-self-hosting/ansible-role-postgres) automatically tunes your Postgres configuration with the same [calculation logic](https://github.com/le0pard/pgtune/blob/master/src/features/configuration/configurationSlice.js) that powers https://pgtune.leopard.in.ua/.


Our [Tuning PostgreSQL](docs/maintenance-postgres.md#tuning-postgresql) documentation page has details about how you can turn auto-tuning off or adjust the automatically-determined Postgres configuration parameters manually. Our [Tuning PostgreSQL](docs/maintenance-postgres.md#tuning-postgresql) documentation page has details about how you can turn auto-tuning off or adjust the automatically-determined Postgres configuration parameters manually.


@@ -1244,20 +1244,20 @@ See our [Setting up matrix-bot-chatgpt](docs/configuring-playbook-bot-chatgpt.md


# 2022-11-30 # 2022-11-30


## matrix-postgres-backup has been replaced by the com.devture.ansible.role.postgres_backup external role
## matrix-postgres-backup has been replaced by the ansible-role-postgres-backup external role


Just like we've [replaced Postgres with an external role](#matrix-postgres-has-been-replaced-by-the-comdevtureansiblerolepostgres-external-role) on 2022-11-28, we're now replacing `matrix-postgres-backup` with an external role - [com.devture.ansible.role.postgres_backup](https://github.com/devture/com.devture.ansible.role.postgres_backup).
Just like we've [replaced Postgres with an external role](#matrix-postgres-has-been-replaced-by-the-comdevtureansiblerolepostgres-external-role) on 2022-11-28, we're now replacing `matrix-postgres-backup` with an external role - [com.devture.ansible.role.postgres_backup](https://github.com/mother-of-all-self-hosting/ansible-role-postgres_backup).


You'll need to rename your `matrix_postgres_backup`-prefixed variables such that they use a `postgres_backup` prefix. You'll need to rename your `matrix_postgres_backup`-prefixed variables such that they use a `postgres_backup` prefix.




# 2022-11-28 # 2022-11-28


## matrix-postgres has been replaced by the com.devture.ansible.role.postgres external role
## matrix-postgres has been replaced by the ansible-role-postgres external role


**TLDR**: the tasks that install the integrated Postgres server now live in an external role - [com.devture.ansible.role.postgres](https://github.com/devture/com.devture.ansible.role.postgres). You'll need to run `make roles` to install it, and to also rename your `matrix_postgres`-prefixed variables to use a `devture_postgres` prefix (e.g. `matrix_postgres_connection_password` -> `postgres_connection_password`). All your data will still be there! Some scripts have moved (`/usr/local/bin/matrix-postgres-cli` -> `/matrix/postgres/bin/cli`).
**TLDR**: the tasks that install the integrated Postgres server now live in an external role - [ansible-role-postgres](https://github.com/mother-of-all-self-hosting/ansible-role-postgres). You'll need to run `make roles` to install it, and to also rename your `matrix_postgres`-prefixed variables to use a `devture_postgres` prefix (e.g. `matrix_postgres_connection_password` -> `postgres_connection_password`). All your data will still be there! Some scripts have moved (`/usr/local/bin/matrix-postgres-cli` -> `/matrix/postgres/bin/cli`).


The `matrix-postgres` role that has been part of the playbook for a long time has been replaced with the [com.devture.ansible.role.postgres](https://github.com/devture/com.devture.ansible.role.postgres) role. This was done as part of our work to [use external roles for some things](#the-playbook-now-uses-external-roles-for-some-things) for better code re-use and maintainability.
The `matrix-postgres` role that has been part of the playbook for a long time has been replaced with the [ansible-role-postgres](https://github.com/mother-of-all-self-hosting/ansible-role-postgres) role. This was done as part of our work to [use external roles for some things](#the-playbook-now-uses-external-roles-for-some-things) for better code re-use and maintainability.


The new role is an upgraded version of the old `matrix-postgres` role with these notable differences: The new role is an upgraded version of the old `matrix-postgres` role with these notable differences:




+ 1
- 1
YEAR-IN-REVIEW.md Wyświetl plik

@@ -96,7 +96,7 @@ Besides these major user-visible changes, a lot of work also happened **under th


* we made [major improvements to Synapse workers](https://github.com/spantaleev/matrix-docker-ansible-deploy/blob/ba09705f7fbaf0108652ecbe209793b1d935eba7/CHANGELOG.md#potential-backward-compatibility-break-major-improvements-to-synapse-workers) - adding support for stream writers and for running multiple workers of various kinds (federation senders, pushers, background task processing workers, etc.) * we made [major improvements to Synapse workers](https://github.com/spantaleev/matrix-docker-ansible-deploy/blob/ba09705f7fbaf0108652ecbe209793b1d935eba7/CHANGELOG.md#potential-backward-compatibility-break-major-improvements-to-synapse-workers) - adding support for stream writers and for running multiple workers of various kinds (federation senders, pushers, background task processing workers, etc.)
* we [improved the compatibility of (Synapse + workers) with the rest of the playbook](https://github.com/spantaleev/matrix-docker-ansible-deploy/blob/ba09705f7fbaf0108652ecbe209793b1d935eba7/CHANGELOG.md#backward-compatibility-break-changing-how-reverse-proxying-to-synapse-works---now-via-a-matrix-synapse-reverse-proxy-companion-service) by introducing a new `matrix-synapse-reverse-proxy-companion-service` service * we [improved the compatibility of (Synapse + workers) with the rest of the playbook](https://github.com/spantaleev/matrix-docker-ansible-deploy/blob/ba09705f7fbaf0108652ecbe209793b1d935eba7/CHANGELOG.md#backward-compatibility-break-changing-how-reverse-proxying-to-synapse-works---now-via-a-matrix-synapse-reverse-proxy-companion-service) by introducing a new `matrix-synapse-reverse-proxy-companion-service` service
* we started [splitting various Ansible roles out of the Matrix playbook and into independent roles](https://github.com/spantaleev/matrix-docker-ansible-deploy/blob/ba09705f7fbaf0108652ecbe209793b1d935eba7/CHANGELOG.md#the-playbook-now-uses-external-roles-for-some-things) (e.g. `matrix-postgres` -> [com.devture.ansible.role.postgres](https://github.com/devture/com.devture.ansible.role.postgres)), which could be included in other Ansible playbooks. In fact, these roles already power a few **interesting other sibling playbooks**:
* we started [splitting various Ansible roles out of the Matrix playbook and into independent roles](https://github.com/spantaleev/matrix-docker-ansible-deploy/blob/ba09705f7fbaf0108652ecbe209793b1d935eba7/CHANGELOG.md#the-playbook-now-uses-external-roles-for-some-things) (e.g. `matrix-postgres` -> [ansible-role-postgres](https://github.com/mother-of-all-self-hosting/ansible-role-postgres)), which could be included in other Ansible playbooks. In fact, these roles already power a few **interesting other sibling playbooks**:
* [gitea-docker-ansible-deploy](https://github.com/spantaleev/gitea-docker-ansible-deploy), for deploying a [Gitea](https://gitea.io/) (self-hosted [Git](https://git-scm.com/) service) server * [gitea-docker-ansible-deploy](https://github.com/spantaleev/gitea-docker-ansible-deploy), for deploying a [Gitea](https://gitea.io/) (self-hosted [Git](https://git-scm.com/) service) server
* [nextcloud-docker-ansible-deploy](https://github.com/spantaleev/nextcloud-docker-ansible-deploy), for deploying a [Nextcloud](https://nextcloud.com/) groupware server * [nextcloud-docker-ansible-deploy](https://github.com/spantaleev/nextcloud-docker-ansible-deploy), for deploying a [Nextcloud](https://nextcloud.com/) groupware server
* [vaultwarden-docker-ansible-deploy](https://github.com/spantaleev/vaultwarden-docker-ansible-deploy), for deploying a [Vaultwarden](https://github.com/dani-garcia/vaultwarden) password manager server (unofficial [Bitwarden](https://bitwarden.com/) compatible server) * [vaultwarden-docker-ansible-deploy](https://github.com/spantaleev/vaultwarden-docker-ansible-deploy), for deploying a [Vaultwarden](https://github.com/dani-garcia/vaultwarden) password manager server (unofficial [Bitwarden](https://bitwarden.com/) compatible server)


+ 1
- 1
docs/configuring-playbook-postgres-backup.md Wyświetl plik

@@ -1,6 +1,6 @@
# Setting up postgres backup (optional) # Setting up postgres backup (optional)


The playbook can install and configure [docker-postgres-backup-local](https://github.com/prodrigestivill/docker-postgres-backup-local) for you via the [com.devture.ansible.role.postgres_backup](https://github.com/devture/com.devture.ansible.role.postgres_backup) Ansible role.
The playbook can install and configure [docker-postgres-backup-local](https://github.com/prodrigestivill/docker-postgres-backup-local) for you via the [ansible-role-postgres-backup](https://github.com/mother-of-all-self-hosting/ansible-role-postgres-backup) Ansible role.


For a more complete backup solution (one that includes not only Postgres, but also other configuration/data files), you may wish to look into [borg backup](configuring-playbook-backup-borg.md) instead. For a more complete backup solution (one that includes not only Postgres, but also other configuration/data files), you may wish to look into [borg backup](configuring-playbook-backup-borg.md) instead.




+ 1
- 1
docs/configuring-playbook-traefik.md Wyświetl plik

@@ -1,6 +1,6 @@
# Configure Traefik (optional, advanced) # Configure Traefik (optional, advanced)


By default, this playbook installs and manages a [Traefik](https://doc.traefik.io/traefik/) reverse-proxy server, powered by the [com.devture.ansible.role.traefik](https://github.com/devture/com.devture.ansible.role.traefik) Ansible role.
By default, this playbook installs and manages a [Traefik](https://doc.traefik.io/traefik/) reverse-proxy server, powered by the [ansible-role-traefik](https://github.com/mother-of-all-self-hosting/ansible-role-traefik) Ansible role.


This Ansible role support various configuration options. Feel free to consult its `default/main.yml` variables file. This Ansible role support various configuration options. Feel free to consult its `default/main.yml` variables file.




+ 3
- 3
docs/maintenance-postgres.md Wyświetl plik

@@ -106,13 +106,13 @@ Example: `--extra-vars="postgres_dump_name=matrix-postgres-dump.sql"`


PostgreSQL can be [tuned](https://wiki.postgresql.org/wiki/Tuning_Your_PostgreSQL_Server) to make it run faster. This is done by passing extra arguments to the Postgres process. PostgreSQL can be [tuned](https://wiki.postgresql.org/wiki/Tuning_Your_PostgreSQL_Server) to make it run faster. This is done by passing extra arguments to the Postgres process.


The [Postgres Ansible role](https://github.com/devture/com.devture.ansible.role.postgres) **already does some tuning by default**, which matches the [tuning logic](https://github.com/le0pard/pgtune/blob/master/src/features/configuration/configurationSlice.js) done by websites like https://pgtune.leopard.in.ua/.
The [Postgres Ansible role](https://github.com/mother-of-all-self-hosting/ansible-role-postgres) **already does some tuning by default**, which matches the [tuning logic](https://github.com/le0pard/pgtune/blob/master/src/features/configuration/configurationSlice.js) done by websites like https://pgtune.leopard.in.ua/.
You can manually influence some of the tuning variables . These parameters (variables) are injected via the `postgres_postgres_process_extra_arguments_auto` variable. You can manually influence some of the tuning variables . These parameters (variables) are injected via the `postgres_postgres_process_extra_arguments_auto` variable.


Most users should be fine with the automatically-done tuning. However, you may wish to: Most users should be fine with the automatically-done tuning. However, you may wish to:


- **adjust the automatically-determined tuning parameters manually**: change the values for the tuning variables defined in the Postgres role's [default configuration file](https://github.com/devture/com.devture.ansible.role.postgres/blob/main/defaults/main.yml) (see `postgres_max_connections`, `postgres_data_storage` etc). These variables are ultimately passed to Postgres via a `postgres_postgres_process_extra_arguments_auto` variable
- **adjust the automatically-determined tuning parameters manually**: change the values for the tuning variables defined in the Postgres role's [default configuration file](https://github.com/mother-of-all-self-hosting/ansible-role-postgres/blob/main/defaults/main.yml) (see `postgres_max_connections`, `postgres_data_storage` etc). These variables are ultimately passed to Postgres via a `postgres_postgres_process_extra_arguments_auto` variable


- **turn automatically-performed tuning off**: override it like this: `postgres_postgres_process_extra_arguments_auto: []` - **turn automatically-performed tuning off**: override it like this: `postgres_postgres_process_extra_arguments_auto: []`


- **add additional tuning parameters**: define your additional Postgres configuration parameters in `postgres_postgres_process_extra_arguments_custom`. See `postgres_postgres_process_extra_arguments_auto` defined in the Postgres role's [default configuration file](https://github.com/devture/com.devture.ansible.role.postgres/blob/main/defaults/main.yml) for inspiration
- **add additional tuning parameters**: define your additional Postgres configuration parameters in `postgres_postgres_process_extra_arguments_custom`. See `postgres_postgres_process_extra_arguments_auto` defined in the Postgres role's [default configuration file](https://github.com/mother-of-all-self-hosting/ansible-role-postgres/blob/main/defaults/main.yml) for inspiration

+ 1
- 1
roles/custom/matrix-bot-buscarron/tasks/setup_install.yml Wyświetl plik

@@ -12,7 +12,7 @@
- when: "matrix_bot_buscarron_sqlite_database_path_local_stat_result.stat.exists | bool" - when: "matrix_bot_buscarron_sqlite_database_path_local_stat_result.stat.exists | bool"
block: block:
- ansible.builtin.include_role: - ansible.builtin.include_role:
name: galaxy/com.devture.ansible.role.postgres
name: galaxy/postgres
tasks_from: migrate_db_to_postgres tasks_from: migrate_db_to_postgres
vars: vars:
postgres_db_migration_request: postgres_db_migration_request:


+ 1
- 1
roles/custom/matrix-bot-honoroit/tasks/setup_install.yml Wyświetl plik

@@ -12,7 +12,7 @@
- when: "matrix_bot_honoroit_sqlite_database_path_local_stat_result.stat.exists | bool" - when: "matrix_bot_honoroit_sqlite_database_path_local_stat_result.stat.exists | bool"
block: block:
- ansible.builtin.include_role: - ansible.builtin.include_role:
name: galaxy/com.devture.ansible.role.postgres
name: galaxy/postgres
tasks_from: migrate_db_to_postgres tasks_from: migrate_db_to_postgres
vars: vars:
postgres_db_migration_request: postgres_db_migration_request:


+ 1
- 1
roles/custom/matrix-bot-matrix-reminder-bot/tasks/setup_install.yml Wyświetl plik

@@ -13,7 +13,7 @@
- when: "matrix_bot_matrix_reminder_bot_sqlite_database_path_local_stat_result.stat.exists | bool" - when: "matrix_bot_matrix_reminder_bot_sqlite_database_path_local_stat_result.stat.exists | bool"
block: block:
- ansible.builtin.include_role: - ansible.builtin.include_role:
name: galaxy/com.devture.ansible.role.postgres
name: galaxy/postgres
tasks_from: migrate_db_to_postgres tasks_from: migrate_db_to_postgres
vars: vars:
postgres_db_migration_request: postgres_db_migration_request:


+ 1
- 1
roles/custom/matrix-bot-postmoogle/tasks/setup_install.yml Wyświetl plik

@@ -9,7 +9,7 @@
- when: "matrix_bot_postmoogle_sqlite_database_path_local_stat_result.stat.exists | bool" - when: "matrix_bot_postmoogle_sqlite_database_path_local_stat_result.stat.exists | bool"
block: block:
- ansible.builtin.include_role: - ansible.builtin.include_role:
name: galaxy/com.devture.ansible.role.postgres
name: galaxy/postgres
tasks_from: migrate_db_to_postgres tasks_from: migrate_db_to_postgres
vars: vars:
postgres_db_migration_request: postgres_db_migration_request:


+ 1
- 1
roles/custom/matrix-bridge-appservice-discord/tasks/setup_install.yml Wyświetl plik

@@ -13,7 +13,7 @@
- when: "matrix_appservice_discord_sqlite_database_path_local_stat_result.stat.exists | bool" - when: "matrix_appservice_discord_sqlite_database_path_local_stat_result.stat.exists | bool"
block: block:
- ansible.builtin.include_role: - ansible.builtin.include_role:
name: galaxy/com.devture.ansible.role.postgres
name: galaxy/postgres
tasks_from: migrate_db_to_postgres tasks_from: migrate_db_to_postgres
vars: vars:
postgres_db_migration_request: postgres_db_migration_request:


+ 1
- 1
roles/custom/matrix-bridge-appservice-irc/tasks/migrate_nedb_to_postgres.yml Wyświetl plik

@@ -2,7 +2,7 @@


- name: Fail if Postgres not enabled - name: Fail if Postgres not enabled
ansible.builtin.fail: ansible.builtin.fail:
msg: "Postgres via the com.devture.ansible.role.postgres role is not enabled (`postgres_enabled`). Cannot migrate."
msg: "Postgres via ansible-role-postgres role is not enabled (`postgres_enabled`). Cannot migrate."
when: "not postgres_enabled | bool" when: "not postgres_enabled | bool"


# Defaults # Defaults


+ 1
- 1
roles/custom/matrix-bridge-appservice-slack/tasks/migrate_nedb_to_postgres.yml Wyświetl plik

@@ -2,7 +2,7 @@


- name: Fail if Postgres not enabled - name: Fail if Postgres not enabled
ansible.builtin.fail: ansible.builtin.fail:
msg: "Postgres via the com.devture.ansible.role.postgres role is not enabled (`postgres_enabled`). Cannot migrate."
msg: "Postgres via ansible-role-postgres role is not enabled (`postgres_enabled`). Cannot migrate."
when: "not postgres_enabled | bool" when: "not postgres_enabled | bool"


# Defaults # Defaults


+ 1
- 1
roles/custom/matrix-bridge-go-skype-bridge/tasks/setup_install.yml Wyświetl plik

@@ -13,7 +13,7 @@
- when: "matrix_go_skype_bridge_sqlite_database_path_local_stat_result.stat.exists | bool" - when: "matrix_go_skype_bridge_sqlite_database_path_local_stat_result.stat.exists | bool"
block: block:
- ansible.builtin.include_role: - ansible.builtin.include_role:
name: galaxy/com.devture.ansible.role.postgres
name: galaxy/postgres
tasks_from: migrate_db_to_postgres tasks_from: migrate_db_to_postgres
vars: vars:
postgres_db_migration_request: postgres_db_migration_request:


+ 1
- 1
roles/custom/matrix-bridge-mautrix-discord/tasks/setup_install.yml Wyświetl plik

@@ -13,7 +13,7 @@
- when: "matrix_mautrix_discord_sqlite_database_path_local_stat_result.stat.exists | bool" - when: "matrix_mautrix_discord_sqlite_database_path_local_stat_result.stat.exists | bool"
block: block:
- ansible.builtin.include_role: - ansible.builtin.include_role:
name: galaxy/com.devture.ansible.role.postgres
name: galaxy/postgres
tasks_from: migrate_db_to_postgres tasks_from: migrate_db_to_postgres
vars: vars:
postgres_db_migration_request: postgres_db_migration_request:


+ 1
- 1
roles/custom/matrix-bridge-mautrix-facebook/tasks/setup_install.yml Wyświetl plik

@@ -13,7 +13,7 @@
- when: "matrix_mautrix_facebook_sqlite_database_path_local_stat_result.stat.exists | bool" - when: "matrix_mautrix_facebook_sqlite_database_path_local_stat_result.stat.exists | bool"
block: block:
- ansible.builtin.include_role: - ansible.builtin.include_role:
name: galaxy/com.devture.ansible.role.postgres
name: galaxy/postgres
tasks_from: migrate_db_to_postgres tasks_from: migrate_db_to_postgres
vars: vars:
postgres_db_migration_request: postgres_db_migration_request:


+ 1
- 1
roles/custom/matrix-bridge-mautrix-gmessages/tasks/setup_install.yml Wyświetl plik

@@ -13,7 +13,7 @@
- when: "matrix_mautrix_gmessages_sqlite_database_path_local_stat_result.stat.exists | bool" - when: "matrix_mautrix_gmessages_sqlite_database_path_local_stat_result.stat.exists | bool"
block: block:
- ansible.builtin.include_role: - ansible.builtin.include_role:
name: galaxy/com.devture.ansible.role.postgres
name: galaxy/postgres
tasks_from: migrate_db_to_postgres tasks_from: migrate_db_to_postgres
vars: vars:
postgres_db_migration_request: postgres_db_migration_request:


+ 1
- 1
roles/custom/matrix-bridge-mautrix-googlechat/tasks/setup_install.yml Wyświetl plik

@@ -13,7 +13,7 @@
- when: "matrix_mautrix_googlechat_sqlite_database_path_local_stat_result.stat.exists | bool" - when: "matrix_mautrix_googlechat_sqlite_database_path_local_stat_result.stat.exists | bool"
block: block:
- ansible.builtin.include_role: - ansible.builtin.include_role:
name: galaxy/com.devture.ansible.role.postgres
name: galaxy/postgres
tasks_from: migrate_db_to_postgres tasks_from: migrate_db_to_postgres
vars: vars:
postgres_db_migration_request: postgres_db_migration_request:


+ 1
- 1
roles/custom/matrix-bridge-mautrix-hangouts/tasks/setup_install.yml Wyświetl plik

@@ -13,7 +13,7 @@
- when: "matrix_mautrix_hangouts_sqlite_database_path_local_stat_result.stat.exists | bool" - when: "matrix_mautrix_hangouts_sqlite_database_path_local_stat_result.stat.exists | bool"
block: block:
- ansible.builtin.include_role: - ansible.builtin.include_role:
name: galaxy/com.devture.ansible.role.postgres
name: galaxy/postgres
tasks_from: migrate_db_to_postgres tasks_from: migrate_db_to_postgres
vars: vars:
postgres_db_migration_request: postgres_db_migration_request:


+ 1
- 1
roles/custom/matrix-bridge-mautrix-meta-instagram/tasks/install.yml Wyświetl plik

@@ -13,7 +13,7 @@
- when: "matrix_mautrix_meta_instagram_sqlite_database_path_local_stat_result.stat.exists | bool" - when: "matrix_mautrix_meta_instagram_sqlite_database_path_local_stat_result.stat.exists | bool"
block: block:
- ansible.builtin.include_role: - ansible.builtin.include_role:
name: galaxy/com.devture.ansible.role.postgres
name: galaxy/postgres
tasks_from: migrate_db_to_postgres tasks_from: migrate_db_to_postgres
vars: vars:
postgres_db_migration_request: postgres_db_migration_request:


+ 1
- 1
roles/custom/matrix-bridge-mautrix-meta-messenger/tasks/install.yml Wyświetl plik

@@ -13,7 +13,7 @@
- when: "matrix_mautrix_meta_messenger_sqlite_database_path_local_stat_result.stat.exists | bool" - when: "matrix_mautrix_meta_messenger_sqlite_database_path_local_stat_result.stat.exists | bool"
block: block:
- ansible.builtin.include_role: - ansible.builtin.include_role:
name: galaxy/com.devture.ansible.role.postgres
name: galaxy/postgres
tasks_from: migrate_db_to_postgres tasks_from: migrate_db_to_postgres
vars: vars:
postgres_db_migration_request: postgres_db_migration_request:


+ 1
- 1
roles/custom/matrix-bridge-mautrix-signal/tasks/setup_install.yml Wyświetl plik

@@ -13,7 +13,7 @@
- when: "matrix_mautrix_signal_sqlite_database_path_local_stat_result.stat.exists | bool" - when: "matrix_mautrix_signal_sqlite_database_path_local_stat_result.stat.exists | bool"
block: block:
- ansible.builtin.include_role: - ansible.builtin.include_role:
name: galaxy/com.devture.ansible.role.postgres
name: galaxy/postgres
tasks_from: migrate_db_to_postgres tasks_from: migrate_db_to_postgres
vars: vars:
postgres_db_migration_request: postgres_db_migration_request:


+ 1
- 1
roles/custom/matrix-bridge-mautrix-slack/tasks/setup_install.yml Wyświetl plik

@@ -13,7 +13,7 @@
- when: "matrix_mautrix_slack_sqlite_database_path_local_stat_result.stat.exists | bool" - when: "matrix_mautrix_slack_sqlite_database_path_local_stat_result.stat.exists | bool"
block: block:
- ansible.builtin.include_role: - ansible.builtin.include_role:
name: galaxy/com.devture.ansible.role.postgres
name: galaxy/postgres
tasks_from: migrate_db_to_postgres tasks_from: migrate_db_to_postgres
vars: vars:
postgres_db_migration_request: postgres_db_migration_request:


+ 1
- 1
roles/custom/matrix-bridge-mautrix-telegram/tasks/setup_install.yml Wyświetl plik

@@ -13,7 +13,7 @@
- when: "matrix_mautrix_telegram_sqlite_database_path_local_stat_result.stat.exists | bool" - when: "matrix_mautrix_telegram_sqlite_database_path_local_stat_result.stat.exists | bool"
block: block:
- ansible.builtin.include_role: - ansible.builtin.include_role:
name: galaxy/com.devture.ansible.role.postgres
name: galaxy/postgres
tasks_from: migrate_db_to_postgres tasks_from: migrate_db_to_postgres
vars: vars:
postgres_db_migration_request: postgres_db_migration_request:


+ 1
- 1
roles/custom/matrix-bridge-mautrix-whatsapp/tasks/setup_install.yml Wyświetl plik

@@ -13,7 +13,7 @@
- when: "matrix_mautrix_whatsapp_sqlite_database_path_local_stat_result.stat.exists | bool" - when: "matrix_mautrix_whatsapp_sqlite_database_path_local_stat_result.stat.exists | bool"
block: block:
- ansible.builtin.include_role: - ansible.builtin.include_role:
name: galaxy/com.devture.ansible.role.postgres
name: galaxy/postgres
tasks_from: migrate_db_to_postgres tasks_from: migrate_db_to_postgres
vars: vars:
postgres_db_migration_request: postgres_db_migration_request:


+ 1
- 1
roles/custom/matrix-bridge-mx-puppet-discord/tasks/setup_install.yml Wyświetl plik

@@ -47,7 +47,7 @@
- when: "matrix_mx_puppet_discord_sqlite_database_path_local_stat_result.stat.exists | bool" - when: "matrix_mx_puppet_discord_sqlite_database_path_local_stat_result.stat.exists | bool"
block: block:
- ansible.builtin.include_role: - ansible.builtin.include_role:
name: galaxy/com.devture.ansible.role.postgres
name: galaxy/postgres
tasks_from: migrate_db_to_postgres tasks_from: migrate_db_to_postgres
vars: vars:
postgres_db_migration_request: postgres_db_migration_request:


+ 1
- 1
roles/custom/matrix-bridge-mx-puppet-groupme/tasks/setup_install.yml Wyświetl plik

@@ -48,7 +48,7 @@
- when: "matrix_mx_puppet_groupme_sqlite_database_path_local_stat_result.stat.exists | bool" - when: "matrix_mx_puppet_groupme_sqlite_database_path_local_stat_result.stat.exists | bool"
block: block:
- ansible.builtin.include_role: - ansible.builtin.include_role:
name: galaxy/com.devture.ansible.role.postgres
name: galaxy/postgres
tasks_from: migrate_db_to_postgres tasks_from: migrate_db_to_postgres
vars: vars:
postgres_db_migration_request: postgres_db_migration_request:


+ 1
- 1
roles/custom/matrix-bridge-mx-puppet-instagram/tasks/setup_install.yml Wyświetl plik

@@ -13,7 +13,7 @@
- when: "matrix_mx_puppet_instagram_sqlite_database_path_local_stat_result.stat.exists | bool" - when: "matrix_mx_puppet_instagram_sqlite_database_path_local_stat_result.stat.exists | bool"
block: block:
- ansible.builtin.include_role: - ansible.builtin.include_role:
name: galaxy/com.devture.ansible.role.postgres
name: galaxy/postgres
tasks_from: migrate_db_to_postgres tasks_from: migrate_db_to_postgres
vars: vars:
postgres_db_migration_request: postgres_db_migration_request:


+ 1
- 1
roles/custom/matrix-bridge-mx-puppet-slack/tasks/setup_install.yml Wyświetl plik

@@ -41,7 +41,7 @@
- when: "matrix_mx_puppet_slack_sqlite_database_path_local_stat_result.stat.exists | bool" - when: "matrix_mx_puppet_slack_sqlite_database_path_local_stat_result.stat.exists | bool"
block: block:
- ansible.builtin.include_role: - ansible.builtin.include_role:
name: galaxy/com.devture.ansible.role.postgres
name: galaxy/postgres
tasks_from: migrate_db_to_postgres tasks_from: migrate_db_to_postgres
vars: vars:
postgres_db_migration_request: postgres_db_migration_request:


+ 1
- 1
roles/custom/matrix-bridge-mx-puppet-steam/tasks/setup_install.yml Wyświetl plik

@@ -48,7 +48,7 @@
- when: "matrix_mx_puppet_steam_sqlite_database_path_local_stat_result.stat.exists | bool" - when: "matrix_mx_puppet_steam_sqlite_database_path_local_stat_result.stat.exists | bool"
block: block:
- ansible.builtin.include_role: - ansible.builtin.include_role:
name: galaxy/com.devture.ansible.role.postgres
name: galaxy/postgres
tasks_from: migrate_db_to_postgres tasks_from: migrate_db_to_postgres
vars: vars:
postgres_db_migration_request: postgres_db_migration_request:


+ 1
- 1
roles/custom/matrix-bridge-mx-puppet-twitter/tasks/setup_install.yml Wyświetl plik

@@ -48,7 +48,7 @@
- when: "matrix_mx_puppet_twitter_sqlite_database_path_local_stat_result.stat.exists | bool" - when: "matrix_mx_puppet_twitter_sqlite_database_path_local_stat_result.stat.exists | bool"
block: block:
- ansible.builtin.include_role: - ansible.builtin.include_role:
name: galaxy/com.devture.ansible.role.postgres
name: galaxy/postgres
tasks_from: migrate_db_to_postgres tasks_from: migrate_db_to_postgres
vars: vars:
postgres_db_migration_request: postgres_db_migration_request:


+ 1
- 1
roles/custom/matrix-dimension/tasks/setup_install.yml Wyświetl plik

@@ -52,7 +52,7 @@
- {'table': 'dimension_bridges', 'column': 'isPublic', 'default': ''} - {'table': 'dimension_bridges', 'column': 'isPublic', 'default': ''}


- ansible.builtin.include_role: - ansible.builtin.include_role:
name: galaxy/com.devture.ansible.role.postgres
name: galaxy/postgres
tasks_from: migrate_db_to_postgres tasks_from: migrate_db_to_postgres
vars: vars:
postgres_db_migration_request: postgres_db_migration_request:


+ 1
- 1
roles/custom/matrix-ma1sd/tasks/setup_install.yml Wyświetl plik

@@ -28,7 +28,7 @@
- when: "matrix_ma1sd_sqlite_database_path_local_stat_result.stat.exists | bool" - when: "matrix_ma1sd_sqlite_database_path_local_stat_result.stat.exists | bool"
block: block:
- ansible.builtin.include_role: - ansible.builtin.include_role:
name: galaxy/com.devture.ansible.role.postgres
name: galaxy/postgres
tasks_from: migrate_db_to_postgres tasks_from: migrate_db_to_postgres
vars: vars:
postgres_db_migration_request: postgres_db_migration_request:


+ 1
- 1
roles/custom/matrix-registration/tasks/setup_install.yml Wyświetl plik

@@ -13,7 +13,7 @@
- when: "matrix_registration_sqlite_database_path_local_stat_result.stat.exists | bool" - when: "matrix_registration_sqlite_database_path_local_stat_result.stat.exists | bool"
block: block:
- ansible.builtin.include_role: - ansible.builtin.include_role:
name: galaxy/com.devture.ansible.role.postgres
name: galaxy/postgres
tasks_from: migrate_db_to_postgres tasks_from: migrate_db_to_postgres
vars: vars:
postgres_db_migration_request: postgres_db_migration_request:


+ 1
- 1
roles/custom/matrix-synapse/tasks/rust-synapse-compress-state/main.yml Wyświetl plik

@@ -3,7 +3,7 @@


- name: Fail if Postgres not enabled - name: Fail if Postgres not enabled
ansible.builtin.fail: ansible.builtin.fail:
msg: "Postgres via the com.devture.ansible.role.postgres role is not enabled (`postgres_enabled`). Cannot use rust-synapse-compress-state."
msg: "Postgres via ansible-role-postgres role is not enabled (`postgres_enabled`). Cannot use rust-synapse-compress-state."
when: "not postgres_enabled | bool" when: "not postgres_enabled | bool"






+ 1
- 1
roles/custom/matrix-synapse/tasks/update_user_password.yml Wyświetl plik

@@ -12,7 +12,7 @@


- name: Fail if not using integrated Postgres database - name: Fail if not using integrated Postgres database
ansible.builtin.fail: ansible.builtin.fail:
msg: "This command is working only when Postgres is installed via the the integrated com.devture.ansible.role.postgres role"
msg: "This command is working only when Postgres is installed via the the integrated ansible-role-postgres role"
when: "not postgres_enabled | bool" when: "not postgres_enabled | bool"


- name: Ensure Postgres is started - name: Ensure Postgres is started


+ 2
- 2
roles/custom/matrix_playbook_migration/tasks/validate_config.yml Wyświetl plik

@@ -66,10 +66,10 @@
- name: (Deprecation) Catch and report matrix_postgres variables - name: (Deprecation) Catch and report matrix_postgres variables
ansible.builtin.fail: ansible.builtin.fail:
msg: |- msg: |-
The matrix-postgres role in the playbook has been replaced with the com.devture.ansible.role.postgres role (https://github.com/devture/com.devture.ansible.role.postgres).
The matrix-postgres role in the playbook has been replaced with the ansible-role-postgres role (https://github.com/mother-of-all-self-hosting/ansible-role-postgres).
The new role is pretty much the same, but uses differently named variables. The new role is pretty much the same, but uses differently named variables.


The matrix-postgres-backup role in the playbook has been replaced with the com.devture.ansible.role.postgres_backup role (https://github.com/devture/com.devture.ansible.role.postgres_backup).
The matrix-postgres-backup role in the playbook has been replaced with the ansible-role-postgres-backup role (https://github.com/mother-of-all-self-hosting/ansible-role-postgres-backup).
The new role is pretty much the same, but uses differently named variables. The new role is pretty much the same, but uses differently named variables.


Please change your configuration (vars.yml) to rename all `matrix_postgres`-prefixed variables (`matrix_postgres_*` -> `postgres_*`). Please change your configuration (vars.yml) to rename all `matrix_postgres`-prefixed variables (`matrix_postgres_*` -> `postgres_*`).


Ładowanie…
Anuluj
Zapisz