Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reef: cephadm: Adding support to configure public_network cfg section #53110

Merged
merged 1 commit into from
Aug 31, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/cephadm/cephadm.py
Original file line number Diff line number Diff line change
Expand Up @@ -5649,8 +5649,10 @@ def finish_bootstrap_config(
cli(['config', 'set', 'global', 'container_image', f'{ctx.image}'])

if mon_network:
logger.info(f'Setting mon public_network to {mon_network}')
cli(['config', 'set', 'mon', 'public_network', mon_network])
cp = read_config(ctx.config)
cfg_section = 'global' if cp.has_option('global', 'public_network') else 'mon'
logger.info(f'Setting public_network to {mon_network} in {cfg_section} config section')
cli(['config', 'set', cfg_section, 'public_network', mon_network])

if cluster_network:
logger.info(f'Setting cluster_network to {cluster_network}')
Expand Down