fix storage

This commit is contained in:
2026-01-09 16:54:39 +00:00
parent dcb54c26ec
commit 7b91e0fd24
37 changed files with 3283 additions and 1227 deletions

View File

@@ -0,0 +1,88 @@
# Database Setup Complete
**Tanggal:** 2025-01-09
**Status:****BERHASIL**
## Yang Telah Dibuat
### ✅ User PostgreSQL: `calypso`
- Status: ✅ **CREATED**
- Password: `calypso_secure_2025` (disimpan di script, perlu diubah untuk production)
### ✅ Database: `calypso`
- Owner: `calypso`
- Encoding: UTF8
- Status: ✅ **CREATED**
### ✅ Database Access: `bacula`
- User `calypso` memiliki **READ ACCESS** ke database `bacula`
- Privileges:
- ✅ CONNECT ke database `bacula`
- ✅ USAGE pada schema `public`
- ✅ SELECT pada semua tables (32 tables)
- ✅ Default privileges untuk tables baru
## Verifikasi
### User yang Ada:
```
bacula |
calypso |
```
### Database yang Ada:
```
bacula | bacula | SQL_ASCII | ... | calypso=c/bacula
calypso | calypso | UTF8 | ... | calypso=CTc/calypso
```
### Access Test:
- ✅ User `calypso` bisa connect ke database `calypso`
- ✅ User `calypso` bisa connect ke database `bacula`
- ✅ User `calypso` bisa SELECT dari tables di database `bacula` (32 tables accessible)
## Konfigurasi untuk Calypso API
Update `/etc/calypso/config.yaml` atau set environment variables:
```bash
export CALYPSO_DB_PASSWORD="calypso_secure_2025"
export CALYPSO_DB_USER="calypso"
export CALYPSO_DB_NAME="calypso"
```
Atau di config file:
```yaml
database:
host: "localhost"
port: 5432
user: "calypso"
password: "calypso_secure_2025" # Atau via env var CALYPSO_DB_PASSWORD
database: "calypso"
ssl_mode: "disable"
```
## Catatan Penting
⚠️ **Security Note:**
- Password `calypso_secure_2025` adalah default password
- **WAJIB diubah** untuk production environment
- Gunakan strong password generator
- Simpan password di `/etc/calypso/secrets.env` atau environment variables
## Next Steps
1. ✅ Database `calypso` siap untuk migrations
2. ✅ Calypso API bisa connect ke database sendiri
3. ✅ Calypso API bisa read data dari Bacula database
4. ⏭️ Jalankan Calypso API untuk auto-migration
5. ⏭️ Update password ke production-grade password
## Bacula Database Access
User `calypso` sekarang bisa:
- ✅ Read semua tables di database `bacula`
- ✅ Query job history, clients, storage pools, volumes, media
- ✅ Monitor backup operations
-**TIDAK bisa** write/modify data di database `bacula` (read-only access)
Ini sesuai dengan requirement Calypso untuk monitoring dan reporting Bacula operations tanpa bisa mengubah konfigurasi Bacula.