From c815a3f0aecad40eef8ed11d00d5e4fd07f6fc0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julian-Samuel=20Geb=C3=BChr?= Date: Fri, 24 Mar 2023 23:52:50 +0100 Subject: [PATCH 01/14] Adjust role path --- docs/services/firezone.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/services/firezone.md b/docs/services/firezone.md index 707313f..d4fbf2a 100644 --- a/docs/services/firezone.md +++ b/docs/services/firezone.md @@ -1,6 +1,6 @@ # Firezone -[Firezone](https://www.firezone.dev/) is a self-hosted VPN server (based on [WireGuard](https://en.wikipedia.org/wiki/WireGuard)) with Web UI that this playbook can install, powered by the [moan0s/role-firezone](https://github.com/moan0s/role-firezone) Ansible role. +[Firezone](https://www.firezone.dev/) is a self-hosted VPN server (based on [WireGuard](https://en.wikipedia.org/wiki/WireGuard)) with Web UI that this playbook can install, powered by the [mother-of-all-self-hosting/ansible-role-firezone](https://github.com/mother-of-all-self-hosting/ansible-role-firezone) Ansible role. ## Configuration From bd98a52f6808bea75050458924f4806fb09df6de Mon Sep 17 00:00:00 2001 From: Slavi Pantaleev Date: Wed, 29 Mar 2023 11:42:39 +0300 Subject: [PATCH 02/14] Add Navidrome support --- docs/services/navidrome.md | 141 +++++++++++++++++++++++++++++++++++++ docs/supported-services.md | 1 + group_vars/mash_servers | 35 +++++++++ requirements.yml | 3 + setup.yml | 2 + 5 files changed, 182 insertions(+) create mode 100644 docs/services/navidrome.md diff --git a/docs/services/navidrome.md b/docs/services/navidrome.md new file mode 100644 index 0000000..5703aa5 --- /dev/null +++ b/docs/services/navidrome.md @@ -0,0 +1,141 @@ +# Navidrome + +[Navidrome](https://www.navidrome.org/) is a [Subsonic-API](http://www.subsonic.org/pages/api.jsp) compatible music server. + + +## Dependencies + +This service requires the following other services: + +- a [Traefik](traefik.md) reverse-proxy server + + +## Configuration + +To enable this service, add the following configuration to your `vars.yml` file and re-run the [installation](../installing.md) process: + +```yaml +######################################################################## +# # +# navidrome # +# # +######################################################################## + +navidrome_enabled: true + +navidrome_hostname: mash.example.com +navidrome_path_prefix: /navidrome + +# By default, Navidrome will look at the /music directory for music files, +# controlled by the `navidrome_environment_variable_nd_musicfolder` variable. +# +# You'd need to mount some music directory into the Navidrome container, like shown below. +# The "Syncthing integration" section below may be relevant. +# navidrome_container_additional_volumes: +# - type: bind +# src: /on-host/path/to/music +# dst: /music +# options: readonly + +######################################################################## +# # +# /navidrome # +# # +######################################################################## +``` + +### URL + +In the example configuration above, we configure the service to be hosted at `https://mash.example.com/navidrome`. + +You can remove the `navidrome_path_prefix` variable definition, to make it default to `/`, so that the service is served at `https://mash.example.com/`. + +### Authentication + +On first use (see [Usage](#usage) below), you'll be asked to create the first administrator user. + +You can create additional users from the web UI after that. + +### Syncthing integration + +If you've got a [Syncthing](syncthing.md) service running, you can use it to synchronize your music directory onto the server and then mount it as read-only into the Navidrome container. + +We recommend that you make use of the [aux](aux.md) role to create some shared directory like this: + +```yaml +######################################################################## +# # +# aux # +# # +######################################################################## + +aux_directory_definitions: + - dest: "{{ mash_playbook_base_path }}/storage" + - dest: "{{ mash_playbook_base_path }}/storage/music" + +######################################################################## +# # +# /aux # +# # +######################################################################## +``` + +You can then mount this `{{ mash_playbook_base_path }}/storage/music` directory into the Syncthing container and synchronize it with some other computer: + +```yaml +######################################################################## +# # +# syncthing # +# # +######################################################################## + +# Other Syncthing configuration.. + +syncthing_container_additional_volumes: + - type: bind + src: "{{ mash_playbook_base_path }}/storage/music" + dst: /music + +######################################################################## +# # +# /syncthing # +# # +######################################################################## +``` + +Finally, mount the `{{ mash_playbook_base_path }}/storage/music` directory into the Navidrome container as read-only: + +```yaml +######################################################################## +# # +# navidrome # +# # +######################################################################## + +# Other Navidrome configuration.. + +navidrome_container_additional_volumes: + - type: bind + src: "{{ mash_playbook_base_path }}/storage/music" + dst: /music + options: readonly + +######################################################################## +# # +# /navidrome # +# # +######################################################################## +``` + +## Usage + +After installation, you can go to the Navidrome URL, as defined in `navidrome_hostname` and `navidrome_path_prefix`. + +As mentioned in [Authentication](#authentication) above, you'll be asked to create the first administrator user the first time you open the web UI. + +You can also connect various Subsonic-API-compatible [apps](https://www.navidrome.org/docs/overview/#apps) (desktop, web, mobile) to your Navidrome instance. + + +## Recommended other services + +- [Syncthing](syncthing.md) - a continuous file synchronization program which synchronizes files between two or more computers in real time. See [Syncthing integration](#syncthing-integration) diff --git a/docs/supported-services.md b/docs/supported-services.md index c80d2ea..4cbb949 100644 --- a/docs/supported-services.md +++ b/docs/supported-services.md @@ -16,6 +16,7 @@ | [Hubsite](https://github.com/moan0s/hubsite) | A simple, static site that shows an overview of the available services | [Link](services/hubsite.md) | | [Keycloak](https://www.keycloak.org/) | An open source identity and access management solution. | [Link](services/keycloak.md) | | [Miniflux](https://miniflux.app/) | Minimalist and opinionated feed reader. | [Link](services/miniflux.md) | +| [Navidrome](https://www.navidrome.org/) | [Subsonic-API](http://www.subsonic.org/pages/api.jsp) compatible music server | [Link](services/navidrome.md) | [NetBox](https://docs.netbox.dev/en/stable/) | Web application that provides [IP address management (IPAM)](https://en.wikipedia.org/wiki/IP_address_management) and [data center infrastructure management (DCIM)](https://en.wikipedia.org/wiki/Data_center_management#Data_center_infrastructure_management) functionality | [Link](services/netbox.md) | | [Nextcloud](https://nextcloud.com/) | The most popular self-hosted collaboration solution for tens of millions of users at thousands of organizations across the globe. | [Link](services/nextcloud.md) | | [PeerTube](https://joinpeertube.org/) | A tool for sharing online videos | [Link](services/peertube.md) | diff --git a/group_vars/mash_servers b/group_vars/mash_servers index 22eb40c..b5cc364 100644 --- a/group_vars/mash_servers +++ b/group_vars/mash_servers @@ -99,6 +99,8 @@ devture_systemd_service_manager_services_list_auto: | + ([{'name': (miniflux_identifier + '.service'), 'priority': 2000, 'groups': ['mash', 'miniflux']}] if miniflux_enabled else []) + + ([{'name': (navidrome_identifier + '.service'), 'priority': 2000, 'groups': ['mash', 'navidrome']}] if navidrome_enabled else []) + + ([{'name': (netbox_identifier + '.service'), 'priority': 2000, 'groups': ['mash', 'netbox', 'netbox-server']}] if netbox_enabled else []) + ([{'name': (netbox_identifier + '-worker.service'), 'priority': 2500, 'groups': ['mash', 'netbox', 'netbox-worker']}] if netbox_enabled else []) @@ -781,6 +783,39 @@ miniflux_database_password: "{{ '%s' | format(mash_playbook_generic_secret_key) +######################################################################## +# # +# navidrome # +# # +######################################################################## + +navidrome_enabled: false + +navidrome_identifier: "{{ mash_playbook_service_identifier_prefix }}navidrome" + +navidrome_uid: "{{ mash_playbook_uid }}" +navidrome_gid: "{{ mash_playbook_gid }}" + +navidrome_base_path: "{{ mash_playbook_base_path }}/{{ mash_playbook_service_base_directory_name_prefix }}navidrome" + +navidrome_container_additional_networks_auto: | + {{ + ([mash_playbook_reverse_proxyable_services_additional_network] if mash_playbook_reverse_proxyable_services_additional_network else []) + }} + +navidrome_container_labels_traefik_enabled: "{{ mash_playbook_traefik_labels_enabled }}" +navidrome_container_labels_traefik_docker_network: "{{ mash_playbook_reverse_proxyable_services_additional_network }}" +navidrome_container_labels_traefik_entrypoints: "{{ devture_traefik_entrypoint_primary }}" +navidrome_container_labels_traefik_tls_certResolver: "{{ devture_traefik_certResolver_primary }}" + +######################################################################## +# # +# /navidrome # +# # +######################################################################## + + + ######################################################################## # # # nextcloud # diff --git a/requirements.yml b/requirements.yml index d492f67..b79a621 100644 --- a/requirements.yml +++ b/requirements.yml @@ -78,6 +78,9 @@ - src: git+https://github.com/mother-of-all-self-hosting/ansible-role-keycloak.git version: v21.0.1-1 name: keycloak +- src: git+https://github.com/mother-of-all-self-hosting/ansible-role-navidrome.git + version: v0.49.3-0 + name: navidrome - src: git+https://github.com/mother-of-all-self-hosting/ansible-role-netbox.git version: v3.4.6-2.5.1-0 name: netbox diff --git a/setup.yml b/setup.yml index f35d358..45f36f2 100644 --- a/setup.yml +++ b/setup.yml @@ -76,6 +76,8 @@ - role: galaxy/hubsite + - role: galaxy/navidrome + - role: galaxy/netbox - role: galaxy/nextcloud From c3ac6200a98857296ed5979bb96b9e4f065127db Mon Sep 17 00:00:00 2001 From: Slavi Pantaleev Date: Wed, 29 Mar 2023 14:14:29 +0300 Subject: [PATCH 03/14] Upgrade Nextcloud (v26.0.0-0 -> v26.0.0-1) --- group_vars/mash_servers | 6 ++---- requirements.yml | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/group_vars/mash_servers b/group_vars/mash_servers index b5cc364..be91cb0 100644 --- a/group_vars/mash_servers +++ b/group_vars/mash_servers @@ -831,14 +831,12 @@ nextcloud_base_path: "{{ mash_playbook_base_path }}/{{ mash_playbook_service_bas nextcloud_uid: "{{ mash_playbook_uid }}" nextcloud_gid: "{{ mash_playbook_gid }}" -nextcloud_systemd_required_systemd_services_list: | +nextcloud_systemd_required_systemd_services_list_auto: | {{ - (['docker.service']) - + ([devture_postgres_identifier ~ '.service'] if devture_postgres_enabled and nextcloud_database_hostname == devture_postgres_identifier else []) }} -nextcloud_container_additional_networks: | +nextcloud_container_additional_networks_auto: | {{ ([mash_playbook_reverse_proxyable_services_additional_network] if mash_playbook_reverse_proxyable_services_additional_network else []) + diff --git a/requirements.yml b/requirements.yml index b79a621..b20d641 100644 --- a/requirements.yml +++ b/requirements.yml @@ -85,7 +85,7 @@ version: v3.4.6-2.5.1-0 name: netbox - src: git+https://github.com/mother-of-all-self-hosting/ansible-role-nextcloud.git - version: v26.0.0-0 + version: v26.0.0-1 name: nextcloud - src: git+https://github.com/mother-of-all-self-hosting/ansible-role-peertube.git version: v5.1.0-2 From ea0ab44b876b4b4fc5f8918be666ca158f7b6e3a Mon Sep 17 00:00:00 2001 From: Slavi Pantaleev Date: Wed, 29 Mar 2023 14:20:18 +0300 Subject: [PATCH 04/14] Upgrade Navidrome (v0.49.3-0 -> v0.49.3-1) --- requirements.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.yml b/requirements.yml index b20d641..f98f2eb 100644 --- a/requirements.yml +++ b/requirements.yml @@ -79,7 +79,7 @@ version: v21.0.1-1 name: keycloak - src: git+https://github.com/mother-of-all-self-hosting/ansible-role-navidrome.git - version: v0.49.3-0 + version: v0.49.3-1 name: navidrome - src: git+https://github.com/mother-of-all-self-hosting/ansible-role-netbox.git version: v3.4.6-2.5.1-0 From f6cc08b33e294bd3839d2a9ba10da9fa4a7ca546 Mon Sep 17 00:00:00 2001 From: Slavi Pantaleev Date: Wed, 29 Mar 2023 14:23:59 +0300 Subject: [PATCH 05/14] Fix variable typo --- group_vars/mash_servers | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/group_vars/mash_servers b/group_vars/mash_servers index be91cb0..dcd32dc 100644 --- a/group_vars/mash_servers +++ b/group_vars/mash_servers @@ -831,7 +831,7 @@ nextcloud_base_path: "{{ mash_playbook_base_path }}/{{ mash_playbook_service_bas nextcloud_uid: "{{ mash_playbook_uid }}" nextcloud_gid: "{{ mash_playbook_gid }}" -nextcloud_systemd_required_systemd_services_list_auto: | +nextcloud_systemd_required_services_list_auto: | {{ ([devture_postgres_identifier ~ '.service'] if devture_postgres_enabled and nextcloud_database_hostname == devture_postgres_identifier else []) }} From 0c5d9b0ae1e7b698bce0b025beb0882abfdb1684 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julian-Samuel=20Geb=C3=BChr?= Date: Wed, 29 Mar 2023 13:31:17 +0200 Subject: [PATCH 06/14] Use just command --- docs/services/gotosocial.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/services/gotosocial.md b/docs/services/gotosocial.md index ae93152..b5d5a54 100644 --- a/docs/services/gotosocial.md +++ b/docs/services/gotosocial.md @@ -65,14 +65,14 @@ serverA$ rsync -av -e "ssh" data/* root@serverB:/mash/gotosocial/data/ Install (but don't start) the service and database on the server. ```bash -yourPC$ ansible-playbook -i inventory/hosts setup.yml --tags=install-all +yourPC$ just run-tags install-all yourPC$ just run-tags import-postgres --extra-vars=server_path_postgres_dump=/mash/gotosocial/latest.sql --extra-vars=postgres_default_import_database=mash-gotosocial ``` Start the services on the new server ```bash -yourPC$ ansible-playbook -i inventory/hosts setup.yml --tags=start +yourPC$ just run-tags start ``` Done 🥳 From 040a64c29ba6d74a68c7c0eb75d9e203d6032a09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julian-Samuel=20Geb=C3=BChr?= Date: Wed, 29 Mar 2023 13:42:29 +0200 Subject: [PATCH 07/14] use jsut and correct wrong role prefix --- docs/services/gotosocial.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/services/gotosocial.md b/docs/services/gotosocial.md index b5d5a54..893e4f8 100644 --- a/docs/services/gotosocial.md +++ b/docs/services/gotosocial.md @@ -23,12 +23,12 @@ gotosocial_hostname: 'social.example.org' ######################################################################## ``` -After installation, you can use `ansible-playbook -i inventory/hosts setup.yml --tags=gotosocial-add-user --extra-vars "username= email= password="` +After installation, you can use `just run-tags gotosocial-add-user --extra-vars=username=USERNAME --extra-vars=password=PASSWORD --extra-vars=email="` to create your a user. Change `--tags=gotosocial-add-user` to `--tags=gotosocial-add-admin` to create an admin account. ### Usage -After [installing](../installing.md), you can visti at the URL specified in `firezone_hostname` and should see your instance. +After [installing](../installing.md), you can visti at the URL specified in `gotosocial_hostname` and should see your instance. Start to customize it at `social.example.org/admin`. Use the [GtS CLI Tool](https://docs.gotosocial.org/en/latest/admin/cli/) to do admin & maintenance tasks. E.g. use From 80471fc55ca6b22ce208461d54fe100029adeed9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julian-Samuel=20Geb=C3=BChr?= Date: Wed, 29 Mar 2023 13:49:44 +0200 Subject: [PATCH 08/14] Add documentation on hostname and domain --- docs/services/gotosocial.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/docs/services/gotosocial.md b/docs/services/gotosocial.md index 893e4f8..5e78e14 100644 --- a/docs/services/gotosocial.md +++ b/docs/services/gotosocial.md @@ -14,8 +14,21 @@ To enable this service, add the following configuration to your `vars.yml` file ######################################################################## gotosocial_enabled: true + + +# Hostname that this server will be reachable at. +# DO NOT change this after your server has already run once, or you will break things! +# Examples: ["gts.example.org","some.server.com"] gotosocial_hostname: 'social.example.org' +# Domain to use when federating profiles. It defaults to `gotosocial_hostname` but you can cange it when you want your server to be at +# eg., `gotosocial_hostname: gts.example.org`, but you want the domain on accounts to be "example.org" because it looks better +# or is just shorter/easier to remember. +# +# Please read the appropriate section of the installation guide before you go messing around with this setting: +# https://docs.gotosocial.org/installation_guide/advanced/#can-i-host-my-instance-at-fediexampleorg-but-have-just-exampleorg-in-my-username +# gotosocial_account_domain: "example.org" + ######################################################################## # # # /gotosocial # From 92eac9df3bd8e2a710aeea0ca92841183e829476 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julian-Samuel=20Geb=C3=BChr?= Date: Wed, 29 Mar 2023 13:53:46 +0200 Subject: [PATCH 09/14] Streamline placeholders & typo --- docs/services/gotosocial.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/services/gotosocial.md b/docs/services/gotosocial.md index 5e78e14..3558709 100644 --- a/docs/services/gotosocial.md +++ b/docs/services/gotosocial.md @@ -36,12 +36,12 @@ gotosocial_hostname: 'social.example.org' ######################################################################## ``` -After installation, you can use `just run-tags gotosocial-add-user --extra-vars=username=USERNAME --extra-vars=password=PASSWORD --extra-vars=email="` +After installation, you can use `just run-tags gotosocial-add-user --extra-vars=username= --extra-vars=password= --extra-vars=email="` to create your a user. Change `--tags=gotosocial-add-user` to `--tags=gotosocial-add-admin` to create an admin account. ### Usage -After [installing](../installing.md), you can visti at the URL specified in `gotosocial_hostname` and should see your instance. +After [installing](../installing.md), you can visit at the URL specified in `gotosocial_hostname` and should see your instance. Start to customize it at `social.example.org/admin`. Use the [GtS CLI Tool](https://docs.gotosocial.org/en/latest/admin/cli/) to do admin & maintenance tasks. E.g. use From f08a2077221b9fe9474acefea39adb3f196fb18a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julian-Samuel=20Geb=C3=BChr?= Date: Wed, 29 Mar 2023 14:44:38 +0200 Subject: [PATCH 10/14] Rename mash-gotosocial db to gotosocial --- group_vars/mash_servers | 1 - requirements.yml | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/group_vars/mash_servers b/group_vars/mash_servers index 89f008f..d5e47e9 100644 --- a/group_vars/mash_servers +++ b/group_vars/mash_servers @@ -1616,7 +1616,6 @@ gotosocial_gid: "{{ mash_playbook_gid }}" gotosocial_database_host: "{{ devture_postgres_identifier if devture_postgres_enabled else '' }}" gotosocial_database_port: "{{ '5432' if devture_postgres_enabled else '' }}" -gotosocial_database_name: "{{ gotosocial_identifier }}" gotosocial_database_password: "{{ '%s' | format(mash_playbook_generic_secret_key) | password_hash('sha512', 'db.gotosocial', rounds=655555) | to_uuid }}" gotosocial_database_username: "{{ gotosocial_identifier }}" diff --git a/requirements.yml b/requirements.yml index 03c9dc9..534f68d 100644 --- a/requirements.yml +++ b/requirements.yml @@ -104,4 +104,4 @@ name: firezone - src: git+https://github.com/mother-of-all-self-hosting/ansible-role-gotosocial.git name: gotosocial - version: 148933d390a2a789ee4595a593d825e64d5e6f46 + version: d608eb330af28b75d3e4881b2e8c09af64d078f1 From f699b4d2640460e1c462ec185821e588d251f3c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julian-Samuel=20Geb=C3=BChr?= Date: Wed, 29 Mar 2023 14:51:58 +0200 Subject: [PATCH 11/14] Rename mash-firezone db to firezone --- group_vars/mash_servers | 1 - requirements.yml | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/group_vars/mash_servers b/group_vars/mash_servers index 4e8b135..f2bedc4 100644 --- a/group_vars/mash_servers +++ b/group_vars/mash_servers @@ -1602,7 +1602,6 @@ firezone_generic_secret: "{{ mash_playbook_generic_secret_key }}" firezone_database_host: "{{ devture_postgres_identifier if devture_postgres_enabled else '' }}" firezone_database_port: "{{ '5432' if devture_postgres_enabled else '' }}" -firezone_database_name: "{{ firezone_identifier }}" firezone_database_password: "{{ '%s' | format(mash_playbook_generic_secret_key) | password_hash('sha512', 'fz.db.user', rounds=655555) | to_uuid }}" firezone_database_user: "{{ firezone_identifier }}" diff --git a/requirements.yml b/requirements.yml index ad77fb8..afbf953 100644 --- a/requirements.yml +++ b/requirements.yml @@ -103,7 +103,7 @@ version: 6b20c472d36ce5765dc44675d42cce74cbcbd0fe name: hubsite - src: git+https://github.com/moan0s/role-firezone.git - version: ac8564d5e11a75107ba93aec6427b83be824c30a + version: 7962aabb18186520acc6f8f9e4e867bd06bb7280 name: firezone - src: git+https://github.com/mother-of-all-self-hosting/ansible-role-gotosocial.git name: gotosocial From 4f6bb57a0c991e79c8985f1fef24f651861f0785 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julian-Samuel=20Geb=C3=BChr?= Date: Wed, 29 Mar 2023 14:58:45 +0200 Subject: [PATCH 12/14] Document breaking change for firezone --- CHANGELOG.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6a668a9..611c0b5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,18 @@ +# 2023-03-29 + +## (Backward Compatibility Break) Firezone database renamed + +If you are running firezone with the default postgres integration the playbook automatically created the database `mash-firezone`. +To follow the naming scheme we now renamed it just `firezone`. You will have to rename you database manually by running the following commands on your server + +```bash +systemctl stop mash-firezone +docker exec -it mash-postgres psql -U root +ALTER DATABASE "mash-firezone" RENAME TO firezone; +``` + +Then run `just install-all` and you should be good to go! + # 2023-03-26 ## (Backward Compatibility Break) PeerTube is no longer wired to Redis automatically From 9e4e578f1778fde553e258195df0650629c0f54d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julian-Samuel=20Geb=C3=BChr?= Date: Wed, 29 Mar 2023 15:11:53 +0200 Subject: [PATCH 13/14] Bump version --- requirements.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.yml b/requirements.yml index afbf953..2526b6b 100644 --- a/requirements.yml +++ b/requirements.yml @@ -103,7 +103,7 @@ version: 6b20c472d36ce5765dc44675d42cce74cbcbd0fe name: hubsite - src: git+https://github.com/moan0s/role-firezone.git - version: 7962aabb18186520acc6f8f9e4e867bd06bb7280 + version: 3a2a1e4c6b484b643a847941937a80d0efd86d6c name: firezone - src: git+https://github.com/mother-of-all-self-hosting/ansible-role-gotosocial.git name: gotosocial From beedda826aec668ab368a6b331338ce556b5c125 Mon Sep 17 00:00:00 2001 From: Slavi Pantaleev Date: Wed, 29 Mar 2023 16:22:41 +0300 Subject: [PATCH 14/14] Update CHANGELOG.md --- CHANGELOG.md | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 611c0b5..87ebd5c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,16 +2,14 @@ ## (Backward Compatibility Break) Firezone database renamed -If you are running firezone with the default postgres integration the playbook automatically created the database `mash-firezone`. -To follow the naming scheme we now renamed it just `firezone`. You will have to rename you database manually by running the following commands on your server +If you are running [Firezone](docs/services/firezone.md) with the default [Postgres](docs/services/postgres.md) integration the playbook automatically created the database with the name `mash-firezone`. +To be consistent with how this playbook names databases for all other services, going forward we've changed the database name to be just `firezone`. You will have to rename you database manually by running the following commands on your server: -```bash -systemctl stop mash-firezone -docker exec -it mash-postgres psql -U root -ALTER DATABASE "mash-firezone" RENAME TO firezone; -``` +1. Stop Firezone: `systemctl stop mash-firezone` +2. Run a Postgres `psql` shell: `/mash/postgres/bin/cli` +3. Execute this query: `ALTER DATABASE "mash-firezone" RENAME TO firezone;` and then quit the shell with `\q` -Then run `just install-all` and you should be good to go! +Then update the playbook (don't forget to run `just roles`), run `just install-all` and you should be good to go! # 2023-03-26