- keepalived: pg_role='standby' hat Vorrang vor role für BACKUP-Bestimmung - keepalived-master.sh: gecrasht Dienste beim MASTER-Übergang starten (nicht nur reload) - confighash: ip_addresses per Interface-Name hashen statt per FK (Cross-Node-Drift-Fix) - TOTP/2FA: RFC 6238 — Setup-Flow, QR-Code, Admin-Disable; two-step Login - Firewall-UI: Enterprise-Design — auto-Beschreibung, icon-only Actions, zero-hit Indikator - fe80-Filter: Link-local IPv6 aus NTP/DNS Listen-Dropdowns entfernen - VIP-Dashboard, Dual-Path VRRP, GW-Tracking (Migrations 0033/0034) - Forward Proxy + DNS erweiterte Einstellungen (Migrations 0031/0032) - unbound-control: edgeguard in unbound-Gruppe via postinst Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
25 lines
1.3 KiB
Go
25 lines
1.3 KiB
Go
package models
|
|
|
|
import "time"
|
|
|
|
// ClusterSettings ist die Singleton-Tabelle (id=1) für VIP/VRRP-
|
|
// und Replikations-Konfiguration. Angelegt in Migration 0029.
|
|
// hb_* = zweite VRRP-Instanz für Split-Brain-Schutz (0033).
|
|
// gw_check_ip = Gateway-IP für vrrp_script chk_gateway (0033).
|
|
type ClusterSettings struct {
|
|
ID int `gorm:"column:id;primaryKey" json:"id"`
|
|
VIPAddress *string `gorm:"column:vip_address" json:"vip_address,omitempty"`
|
|
VIPInterface *string `gorm:"column:vip_interface" json:"vip_interface,omitempty"`
|
|
VIPAuthPass *string `gorm:"column:vip_auth_pass" json:"vip_auth_pass,omitempty"`
|
|
VRRPRouterID int `gorm:"column:vrrp_router_id" json:"vrrp_router_id"`
|
|
HBInterface *string `gorm:"column:hb_interface" json:"hb_interface,omitempty"`
|
|
HBSrcIP *string `gorm:"column:hb_src_ip" json:"hb_src_ip,omitempty"`
|
|
HBPeerIP *string `gorm:"column:hb_peer_ip" json:"hb_peer_ip,omitempty"`
|
|
HBRouterID int `gorm:"column:hb_router_id" json:"hb_router_id"`
|
|
GWCheckIP *string `gorm:"column:gw_check_ip" json:"gw_check_ip,omitempty"`
|
|
CreatedAt time.Time `gorm:"column:created_at" json:"created_at"`
|
|
UpdatedAt time.Time `gorm:"column:updated_at" json:"updated_at"`
|
|
}
|
|
|
|
func (ClusterSettings) TableName() string { return "cluster_settings" }
|