Update README with schema

This commit is contained in:
Paul-Henri Froidmont 2022-08-04 18:26:10 +02:00
parent 3ceff75ee5
commit 5b961aa424
Signed by: phfroidmont
GPG key ID: BE948AFD7E7873BE
2 changed files with 43 additions and 26 deletions

43
README.adoc Normal file
View file

@ -0,0 +1,43 @@
[plantuml, format="png"]
----
skinparam componentStyle rectangle
cloud "Hetzner cloud" {
node "backend1" {
[Nextcloud]
[matrix-synapse]
[roundcube]
[dkuwiki]
[mumble]
[website-marie]
}
database "db1" {
[PostgreSQL]
}
}
frame "Hetzner dedicated" {
node "storage1" {
[jellyfin]
[torrents]
[mailserver]
[stb-website]
[monero node]
[jitsi-meet]
folder "filesystem" {
interface "nextcloud_data"
interface "media"
}
}
}
[Nextcloud] ---> [PostgreSQL]
[matrix-synapse] ---> [PostgreSQL]
[roundcube] ---> [PostgreSQL]
[Nextcloud] ...> nextcloud_data : sshfs
[jellyfin] ---> media
[torrents] ---> media
----

View file

@ -1,26 +0,0 @@
Self-hosting
============
This project maintains the entire configuration of our self-hosted services.
All configuration should be done exclusively in this repo so that everything is versioned and we have a reliable and esay way to restore the production to any given state.
The deployement of the configuration is done with Ansible. Everything respects the basic Ansible principle that your configuration should be idempotent. It means that that the configuration is completely independent of the current state of the server so whatever the state of the server is, the resulting state should always be the same.
Because of this you shouldn't hesitate to run Ansible often to make sure that the configuration works and the server is in the expected state.
If you run `ansible-playbook` two times in a row, the second execution should result in no changes to be made.
Deploying the configuration
---------------------------
The following command deploys the complete configuration.
```bash
ansible-playbook -i production playbook.yml --ask-vault-pass
```
For this to work, you must of course have ansible installed and have ssh access to the server(s).
You will be prompted for the vault password, ask for it if you don't have it.
Deploying specific parts of the configuration
---------------------------------------------
You probably don't want to deploy the entire configuration every time you make a small change.
You can deploy specific roles by providing a list of tags. Checkout `playbook.yml` to see which tag matches a specific role.
Here is an example of deploying only the wiki and the reverse proxy:
```bash
ansible-playbook -i production playbook.yml --ask-vault-pass --tags wiki,traefik
```