|
|
|
@ -39,6 +39,9 @@ func writeGlobalToBuffer(w *bytes.Buffer, c *GlobalConfig) {
|
|
|
|
|
_, _ = fmt.Fprintf(w, "%s = %s\n", "mon_initial_members", strings.Join(c.Monitors, ", ")) |
|
|
|
|
_, _ = fmt.Fprintf(w, "%s = %s\n", "mon_host", joinAddrs(c.MonitorsAddr, ", ")) |
|
|
|
|
_, _ = fmt.Fprintf(w, "%s = %s\n", "cluster_network", c.ClusterNetwork.String()) |
|
|
|
|
|
|
|
|
|
_, _ = fmt.Fprintf(w, "\n; %s\n", "don't rewrite labels on startup") |
|
|
|
|
_, _ = fmt.Fprintf(w, "%s = %s\n", "osd_class_update_on_start", "false") |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func joinAddrs(addrs []netip.Addr, sep string) string { |
|
|
|
|