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 1/5] 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 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 2/5] 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 3/5] 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 4/5] 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 5/5] 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