Skip to content
Snippets Groups Projects
Commit 05cc153f authored by Guido Trotter's avatar Guido Trotter
Browse files

InitCluster force a config file update

After the cluster is ready we'll load the ConfigWriter and force a
writeout of all config files.

Reviewed-by: imsnah
parent c044f32c
No related branches found
No related tags found
No related merge requests found
...@@ -223,9 +223,11 @@ def InitCluster(cluster_name, mac_prefix, def_bridge, ...@@ -223,9 +223,11 @@ def InitCluster(cluster_name, mac_prefix, def_bridge,
master_candidate=True, master_candidate=True,
) )
cfg = InitConfig(constants.CONFIG_VERSION, sscfg = InitConfig(constants.CONFIG_VERSION,
cluster_config, master_node_config) cluster_config, master_node_config)
ssh.WriteKnownHostsFile(cfg, constants.SSH_KNOWN_HOSTS_FILE) ssh.WriteKnownHostsFile(sscfg, constants.SSH_KNOWN_HOSTS_FILE)
cfg = config.ConfigWriter()
cfg.Update(cfg.GetClusterInfo())
# start the master ip # start the master ip
# TODO: Review rpc call from bootstrap # TODO: Review rpc call from bootstrap
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment