82 lines
2.0 KiB
Markdown
82 lines
2.0 KiB
Markdown
# gameadm Modulare Game Installation
|
|
|
|
## Neues Feature: `gameadm install <spiel>`
|
|
|
|
Mit diesem Update wird gameadm um modulare Spiel-Installation erweitert. Jedes Spiel kann jetzt einzeln konfiguriert und installiert werden.
|
|
|
|
## Verfügbare Kommandos
|
|
|
|
### Minecraft Server
|
|
```bash
|
|
# Minecraft Server konfigurieren
|
|
gameadm install mc
|
|
|
|
# Mit Force-Option (überschreibt bestehende Konfiguration)
|
|
gameadm install mc --force
|
|
|
|
# Server starten nach Installation
|
|
gameadm mc start
|
|
```
|
|
|
|
### Rust Server
|
|
```bash
|
|
# Rust Server konfigurieren
|
|
gameadm install rust
|
|
|
|
# Mit Force-Option (überschreibt bestehende Konfiguration)
|
|
gameadm install rust --force
|
|
|
|
# Server starten nach Installation
|
|
gameadm rust start
|
|
```
|
|
|
|
## Was passiert bei der Installation?
|
|
|
|
### Minecraft Installation (`gameadm install mc`)
|
|
1. **Konfiguration erstellen**: `/etc/minecraft-server.conf`
|
|
2. **Datenverzeichnis**: `/srv/minecraft`
|
|
3. **EULA akzeptieren**: `/srv/minecraft/eula.txt`
|
|
4. **Secrets generieren**: `/root/secrets/minecraft_rcon_password`
|
|
|
|
### Rust Installation (`gameadm install rust`)
|
|
1. **Konfiguration erstellen**: `/etc/rust-server.conf`
|
|
2. **Datenverzeichnis**: `/srv/rust`
|
|
3. **Server-Passwort**: `/root/secrets/rust_server_password`
|
|
4. **RCON-Passwort**: `/root/secrets/rust_rcon_password`
|
|
|
|
## Erweiterbares System
|
|
|
|
Das System ist designed für einfache Erweiterung:
|
|
|
|
1. Neues Spiel-Modul erstellen: `/etc/gameadm/modules/newgame.sh`
|
|
2. `cmd_install()` Funktion implementieren
|
|
3. Automatisch verfügbar: `gameadm install newgame`
|
|
|
|
## CI/CD Integration
|
|
|
|
Die Pipeline testet automatisch:
|
|
- Modulare Installation beider Spiele
|
|
- Konfigurationsdatei-Erstellung
|
|
- Secret-Generierung
|
|
- Funktionstests nach Installation
|
|
|
|
## Workflow
|
|
|
|
```bash
|
|
# 1. gameadm System installieren
|
|
sudo gameadm install
|
|
|
|
# 2. Spiel konfigurieren (einmalig)
|
|
gameadm install mc
|
|
|
|
# 3. Server starten
|
|
gameadm mc start
|
|
|
|
# 4. Server verwalten
|
|
gameadm mc status
|
|
gameadm mc logs
|
|
gameadm mc stop
|
|
```
|
|
|
|
**Enterprise-Ready**: Vollständige Automatisierung, sichere Passwort-Generierung, modulare Architektur.
|