logger.info('Creating initial admin user...')
password = args.initial_dashboard_password or generate_password()
- cli(['dashboard', 'ac-user-create',
- args.initial_dashboard_user, password,
- 'administrator',
- '--force-password'])
+ cmd = ['dashboard', 'ac-user-create', args.initial_dashboard_user, password, 'administrator', '--force-password']
+ if not args.dashboard_password_noupdate:
+ cmd.append('--pwd-update-required')
+ cli(cmd)
logger.info('Fetching dashboard port number...')
out = cli(['config', 'get', 'mgr', 'mgr/dashboard/ssl_server_port'])
port = int(out)
'--skip-dashboard',
action='store_true',
help='do not enable the Ceph Dashboard')
+ parser_bootstrap.add_argument(
+ '--dashboard-password-noupdate',
+ action='store_true',
+ help='stop forced dashboard password change')
parser_bootstrap.add_argument(
'--no-minimize-config',
action='store_true',