| **cephadm** **adopt** [-h] --name NAME --style STYLE [--cluster CLUSTER]
| [--legacy-dir LEGACY_DIR] [--config-json CONFIG_JSON]
| [--skip-firewalld] [--skip-pull]
+| [--container-init]
| **cephadm** **rm-daemon** [-h] --name NAME --fsid FSID [--force]
| [--force-delete-data]
cli(['config', 'set', 'mgr', 'mgr/cephadm/registry_username', args.registry_username, '--force'])
cli(['config', 'set', 'mgr', 'mgr/cephadm/registry_password', args.registry_password, '--force'])
+ if args.container_init:
+ cli(['config', 'set', 'mgr', 'mgr/cephadm/container_init', args.container_init, '--force'])
+
if not args.skip_dashboard:
# Configure SSL port (cephadm only allows to configure dashboard SSL port)
# if the user does not want to use SSL he can change this setting once the cluster is up
'--force-start',
action='store_true',
help="start newly adoped daemon, even if it wasn't running previously")
+ parser_adopt.add_argument(
+ '--container-init',
+ action='store_true',
+ help='Run podman/docker with `--init`')
parser_rm_daemon = subparsers.add_parser(
'rm-daemon', help='remove daemon instance')
'can allow debugging daemons that encounter problems '
'at runtime.',
},
+ {
+ 'name': 'container_init',
+ 'type': 'bool',
+ 'default': False,
+ 'desc': 'Run podman/docker with `--init`',
+ },
{
'name': 'prometheus_alerts_path',
'type': 'str',
self.warn_on_stray_daemons = True
self.warn_on_failed_host_check = True
self.allow_ptrace = False
+ self.container_init = False
self.prometheus_alerts_path = ''
self.migration_current = None
self.config_dashboard = True
if not no_fsid:
final_args += ['--fsid', self._cluster_fsid]
+
+ if self.container_init:
+ final_args += ['--container-init']
+
final_args += args
self.log.debug('args: %s' % (' '.join(final_args)))