vault backup: 2026-08-11 21:12:48
This commit is contained in:
10 files changed
+21
-21
No files matched your search
@@ -24,15 +24,15 @@ Beim [[Hosting Provider]] einen neuen Server bereitstellen. Dabei sicherstellen,
|
||||
|
||||
### Server installieren
|
||||
|
||||
Den Befehl `aplaybook -i inventories/setup setup.yml -l hyperion -u root` ausführen. Nach Bedarf manuelle Konfigurationen vornehmen.
|
||||
Den Befehl `task play -i inventories/mint_sytem plays/setup.yml -l hyperion -u root` ausführen. Nach Bedarf manuelle Konfigurationen vornehmen.
|
||||
|
||||
### Nextcloud installieren
|
||||
|
||||
Den Befehl `aplaybook -i inventories/nextcloud nextcloud.yml -l hyperion` ausführen.
|
||||
Den Befehl `task play -i inventories/mint_sytem plays/nextcloud.yml -l hyperion_nextcloud` ausführen.
|
||||
|
||||
### Proxy installieren
|
||||
|
||||
Den Befehl `aplaybook -i inventories/proxy proxy.yml -l hyperion` ausführen.
|
||||
Den Befehl `task play -i inventories/mint_sytem plays/nginx.yml -l hyperion` ausführen.
|
||||
|
||||
### Backup wiederherstellen
|
||||
|
||||
|
||||
@@ -32,11 +32,11 @@ Im allen `hosts.yml`-Dateien den Host mit `erp.janikv.dev` ersetzen.
|
||||
|
||||
### Server installieren
|
||||
|
||||
Den Befehl `aplaybook -i inventories/setup plays/setup.yml -l helios -u root` ausführen.
|
||||
Den Befehl `task play -i inventories/mint_sytem plays/setup.yml -l helios -u root` ausführen.
|
||||
|
||||
### Odoo installieren
|
||||
|
||||
Den Befehl `aplaybook -i inventories/odoo plays/odoo.yml -l helios` ausführen.
|
||||
Den Befehl `task play -i inventories/mint_sytem plays/odoo.yml -l helios_odoo` ausführen.
|
||||
|
||||
### Proxy konfigurieren und installieren
|
||||
|
||||
@@ -53,7 +53,7 @@ nginx_proxies:
|
||||
proxy_read_timeout 300;
|
||||
```
|
||||
|
||||
Den Befehl `aplaybook -i inventories/proxy proxy.yml -l helios` ausführen.
|
||||
Den Befehl `task play -i inventories/mint_sytem plays/nginx.yml -l helios` ausführen.
|
||||
|
||||
### Backup wiederherstellen
|
||||
|
||||
|
||||
@@ -51,5 +51,5 @@ fstab_mounts:
|
||||
- Mount the fstab:
|
||||
|
||||
```bash
|
||||
aplaybook -i inventories/setup/ plays/setup.yml -t fstab -l $ALIAS
|
||||
task play -i inventories/mint_sytem plays/setup.yml -t fstab -l $ALIAS
|
||||
```
|
||||
@@ -42,7 +42,7 @@ postgres_image: postgres:12-alpine
|
||||
Deploy database container with version 12.
|
||||
|
||||
```bash
|
||||
aplaybook -i inventories/odoo odoo.yml -l apollo -t postgres
|
||||
task play -i inventories/mint_sytem plays/odoo.yml -l apollo_odoo -t postgres
|
||||
```
|
||||
|
||||
Restore the data.
|
||||
@@ -91,7 +91,7 @@ postgres_image: postgres:12-alpine
|
||||
Deploy database container with the new version.
|
||||
|
||||
```bash
|
||||
aplaybook -i inventories/setup play-all.yml -l $HOST -t postgres --skip-tags depends
|
||||
task play -i inventories/mint_sytem plays/all.yml -l $HOST -t postgres --skip-tags depends
|
||||
```
|
||||
|
||||
Restore the data.
|
||||
|
||||
@@ -31,7 +31,7 @@ nextcloud_image: nextcloud:32-apache
|
||||
- Deploy the new container
|
||||
|
||||
```bash
|
||||
task play -i inventories/nextcloud plays/nextcloud.yml -l eos
|
||||
task play -i inventories/mint_sytem plays/nextcloud.yml -l eos_nextcloud
|
||||
```
|
||||
|
||||
- Abort when Ansible on "Info about upgrades"
|
||||
|
||||
@@ -26,7 +26,7 @@ Arbeitsschritte:
|
||||
- Run the Ansible update command for a limited selection of hosts. Select hosts non-customer servers for the first run.
|
||||
|
||||
```bash
|
||||
aplaybook -i inventories/setup plays/setup.yml -l kronos,atlas,hades,hermes,cratos -t update
|
||||
task play -i inventories/mint_sytem plays/setup.yml -l kronos,atlas,hades,hermes,cratos -t update
|
||||
```
|
||||
|
||||
- Check if the servers and services recover after a reboot.
|
||||
@@ -34,7 +34,7 @@ aplaybook -i inventories/setup plays/setup.yml -l kronos,atlas,hades,hermes,crat
|
||||
- Run the same command for for Mint System servers.
|
||||
|
||||
```bash
|
||||
aplaybook -i inventories/setup plays/setup.yml -l apollo,zeus,hyperion,nyx -t update
|
||||
task play -i inventories/mint_sytem plays/setup.yml -l apollo,zeus,hyperion,nyx -t update
|
||||
```
|
||||
|
||||
- If the the patching is successful, add customer servers.
|
||||
|
||||
@@ -46,7 +46,7 @@ Nach einem Rebuild rebuild, wird der originale SSH-Public-Key für den Root-Benu
|
||||
- Server mit Ansible installieren:
|
||||
|
||||
```bash
|
||||
ansible-playbook -i inventories/setup plays/setup.yml -l $ALIAS -u root
|
||||
task play -i inventories/mint_sytem plays/setup.yml -l $ALIAS -u root
|
||||
```
|
||||
|
||||
- Anschliessend den Server neustarten.
|
||||
@@ -58,15 +58,15 @@ ssh $ALIAS.mint-system.com sudo reboot
|
||||
- Alle Container mit Ansible neu deployen:
|
||||
|
||||
```bash
|
||||
ansible-playbook -i inventories/setup plays/all.yml -l $ALIAS
|
||||
ansible-playbook -i inventories/nextcloud plays/nextcloud.yml -l $ALIAS
|
||||
ansible-playbook -i inventories/odoo plays/odoo.yml -l $ALIAS
|
||||
task play -i inventories/mint_sytem plays/all.yml l $ALIAS
|
||||
task play -i inventories/mint_sytem plays/odoo.yml -l ${ALIAS}_odoo
|
||||
task play -i inventories/mint_sytem plays/nextcloud.yml -l ${ALIAS}_nextcloud
|
||||
```
|
||||
|
||||
- Und am Ende den Nginx starten
|
||||
|
||||
```bash
|
||||
ansible-playbook -i inventories/nextcloud -i inventories/odoo -i inventories/setup plays/nginx.yml -l $ALIAS --skip-tags check
|
||||
task play -i inventories/mint_sytem plays/nginx.yml -l $ALIAS --skip-tags check
|
||||
```
|
||||
|
||||
### Troubleshooting
|
||||
|
||||
@@ -12,7 +12,7 @@ Wenn der Server bei einem Drittanbieter gehostet ist, müssen Sie als erstes die
|
||||
|
||||
Arbeitsschritte:
|
||||
|
||||
- Entfernen Sie die Benutzer auf dem Server `aplaybook -i inventories/setup plays/clean.yml -t iam -l $ALIAS`
|
||||
- Entfernen Sie die Benutzer auf dem Server `task play -i inventories/mint_sytem plays/cleanup.yml -t iam -l $ALIAS`
|
||||
|
||||
## Server aus Ansible Inventar entfernen
|
||||
|
||||
|
||||
@@ -10,11 +10,11 @@ Arbeitsschritte:
|
||||
|
||||
- In Ansible-Inventory die `nextcloud_image` Variable anzeigen,
|
||||
- Nächste höhrere Major-Version eingeben,
|
||||
- Deployment mit Ansible ausführen: `task play -i inventories/nextcloud plays/nextcloud.yml -l $ALIAS`,
|
||||
- Deployment mit Ansible ausführen: `task play -i inventories/mint_sytem plays/nextcloud.yml -l ${ALIAS}_nextcloud`,
|
||||
- Sobald neuer Container gestartet wird, das Ansible-Depoloyment mit <kbd>ctrl</kbd>+<kbd>c</kbd> und <kbd>A</kbd> abbrechen,
|
||||
|
||||
Nextcloud führt beim Start bei einer neueren Version die etnsprechenden Upgrade-Skripte aus.
|
||||
|
||||
- Container-Log prüfen.
|
||||
- Ansible-Deployment erneut ausführen: `task play -i inventories/nextcloud plays/nextcloud.yml -l $ALIAS`.
|
||||
- Ansible-Deployment erneut ausführen: `task play -i inventories/mint_sytem plays/nextcloud.yml-l ${ALIAS}_nextcloud`.
|
||||
- Browser-Zugriff und ggf. Synchronisation mit Desktop-Client prüfen.
|
||||
@@ -60,7 +60,7 @@ Mint System Team
|
||||
```
|
||||
|
||||
- In Ansible-Inventar die Informationen zur Odoo Revision aktualisieren
|
||||
- Den Odoo-Container neu deployment `ansible-playbook -i inventories/odoo plays/odoo.yml -l $ALIAS`
|
||||
- Den Odoo-Container neu deployment `task play -i inventories/mint_system plays/odoo.yml -l ${ALIAS}_odoo`
|
||||
- Nach erfolgreichem Deployment die Aktion *Apps > Auto-Upgrade Modules* ausführen
|
||||
|
||||
::: warning
|
||||
|
||||
Reference in new issue
Block a user