|
|
|
@ -4,6 +4,7 @@ package zones
|
|
|
|
|
func (m *Zones) SyncAll() error { |
|
|
|
|
for _, fn := range []func() error{ |
|
|
|
|
m.SyncAllWireguard, |
|
|
|
|
m.SyncAllCeph, |
|
|
|
|
} { |
|
|
|
|
if err := fn(); err != nil { |
|
|
|
|
return err |
|
|
|
@ -31,3 +32,13 @@ func (m *Zones) SyncAllWireguard() error {
|
|
|
|
|
|
|
|
|
|
return nil |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// SyncAllCeph updates the ceph.conf file
|
|
|
|
|
func (m *Zones) SyncAllCeph() error { |
|
|
|
|
cfg, err := m.GenCephConfig() |
|
|
|
|
if err != nil { |
|
|
|
|
return err |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
return m.WriteCephConfig(cfg) |
|
|
|
|
} |
|
|
|
|