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

Update docs/maintenance-upgrading-services.md: replace the list with sections

Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org>
pull/3819/head
Suguru Hirahara 1 год назад
Родитель
Сommit
ad3534dd9e
Не найден GPG ключ соответствующий данной подписи Идентификатор GPG ключа: E4F9743DAB4B7B75
1 измененных файлов: 23 добавлений и 13 удалений
  1. +23
    -13
      docs/maintenance-upgrading-services.md

+ 23
- 13
docs/maintenance-upgrading-services.md Просмотреть файл

@@ -14,27 +14,37 @@ If you want to be notified when new versions of Synapse are released, you should


## Steps to upgrade the Matrix services ## Steps to upgrade the Matrix services


### Check the changelog

Before updating the playbook and the Ansible roles in the playbook, take a look at [the changelog](../CHANGELOG.md) to see if there have been any backward-incompatible changes that you need to take care of. Before updating the playbook and the Ansible roles in the playbook, take a look at [the changelog](../CHANGELOG.md) to see if there have been any backward-incompatible changes that you need to take care of.


If it looks good to you, go to the `matrix-docker-ansible-deploy` directory, then:
### Update the playbook and the Ansible roles

If it looks good to you, go to the `matrix-docker-ansible-deploy` directory, update your playbook directory and all upstream Ansible roles (defined in the `requirements.yml` file) by running:

- either: `just update`
- or: a combination of `git pull` and `just roles` (or `make roles` if you have `make` program on your computer instead of `just`)

If you don't have either `just` tool or `make` program, you can run the `ansible-galaxy` tool directly: `rm -rf roles/galaxy; ansible-galaxy install -r requirements.yml -p roles/galaxy/ --force`

**Note**: for details about `just` commands, take a look at: [Running `just` commands](just.md).


- update your playbook directory and all upstream Ansible roles (defined in the `requirements.yml` file) using:
### Re-run the playbook setup


- either: `just update`
- or: a combination of `git pull` and `just roles` (or `make roles` if you have `make` program on your computer instead of `just`)
After updating the Ansible roles, then re-run the [playbook setup](installing.md#maintaining-your-setup-in-the-future) and restart all services:


If you don't have either `just` tool or `make` program, you can run the `ansible-galaxy` tool directly: `rm -rf roles/galaxy; ansible-galaxy install -r requirements.yml -p roles/galaxy/ --force`
```sh
ansible-playbook -i inventory/hosts setup.yml --tags=install-all,start
```


For details about `just` commands, take a look at: [Running `just` commands](just.md).
If you remove components from `vars.yml`, or if we switch some component from being installed by default to not being installed by default anymore, you'd need to run the setup command with `--tags=setup-all` instead of `--tags=install-all`. See [this page on the playbook tags](playbook-tags.md) for more information.


- re-run the [playbook setup](installing.md#maintaining-your-setup-in-the-future) and restart all services:
#### Run `just` to execute shortcut command


```sh
ansible-playbook -i inventory/hosts setup.yml --tags=install-all,start
```
If you want to invoke the `ansible-playbook` command with less typing, you can run `just` to execute the shortcut command: `just install-all` (or `just setup-all`). Note that it restarts all services automatically.


Note that if you remove components from `vars.yml`, or if we switch some component from being installed by default to not being installed by default anymore, you'd need to run the setup command with `--tags=setup-all` instead of `--tags=install-all`. See [this page on the playbook tags](playbook-tags.md) for more information.
## PostgreSQL major version upgrade


A way to invoke these `ansible-playbook` commands with less typing is to run the `just` "recipe": `just install-all` or `just setup-all`.
Major version upgrades to the internal PostgreSQL database are not done automatically. Upgrades must be performed manually.


**Note**: major version upgrades to the internal PostgreSQL database are not done automatically. To upgrade it, refer to the [upgrading PostgreSQL guide](maintenance-postgres.md#upgrading-postgresql).
For details about upgrading it, refer to the [upgrading PostgreSQL guide](maintenance-postgres.md#upgrading-postgresql).

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