Skip to content

Commit

Permalink
microcloud/cmd/microcloud/main/init: Apply remote pool to all peers
Browse files Browse the repository at this point in the history
Signed-off-by: Max Asnaashari <max.asnaashari@canonical.com>
  • Loading branch information
masnax committed Jul 13, 2023
1 parent 2d49df4 commit 2b186ab
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions microcloud/cmd/microcloud/main_init.go
Original file line number Diff line number Diff line change
Expand Up @@ -412,8 +412,14 @@ func waitForCluster(sh *service.Handler, secrets map[string]string, peers map[st

func postClusterSetup(bootstrap bool, sh *service.Handler, peers map[string]mdns.ServerInfo, lxdDisks map[string][]lxdAPI.ClusterMemberConfigKey, cephDisks map[string][]cephTypes.DisksPost, uplinkNetworks map[string]string, networkConfig map[string]string) error {
cephTargets := map[string]string{}
for target := range cephDisks {
cephTargets[target] = peers[target].AuthSecret
if len(cephDisks) > 0 {
for target := range peers {
cephTargets[target] = peers[target].AuthSecret
}

if bootstrap {
cephTargets[sh.Name] = ""
}
}

networkTargets := map[string]string{}
Expand Down

0 comments on commit 2b186ab

Please sign in to comment.