2016-11-09 05:49:25 -06:00
|
|
|
#
|
|
|
|
# Copyright (C) 2015 FreeIPA Contributors see COPYING for license
|
|
|
|
#
|
|
|
|
|
2018-04-05 02:21:16 -05:00
|
|
|
from __future__ import absolute_import
|
|
|
|
|
2016-11-09 05:49:25 -06:00
|
|
|
from ipapython.install import cli
|
2017-03-08 02:03:13 -06:00
|
|
|
from ipapython.install.core import extend_knob
|
2016-11-09 05:49:25 -06:00
|
|
|
from ipaplatform.paths import paths
|
|
|
|
from ipaserver.install.server import ServerMasterInstall
|
|
|
|
|
|
|
|
|
|
|
|
class CompatServerMasterInstall(ServerMasterInstall):
|
|
|
|
all_ip_addresses = False
|
|
|
|
nisdomain = None
|
|
|
|
no_nisdomain = False
|
|
|
|
no_sudo = False
|
|
|
|
request_cert = False
|
|
|
|
|
2017-03-08 02:03:13 -06:00
|
|
|
dm_password = extend_knob(
|
|
|
|
ServerMasterInstall.dm_password, # pylint: disable=no-member
|
2016-11-09 05:49:25 -06:00
|
|
|
cli_names=['--ds-password', '-p'],
|
|
|
|
)
|
|
|
|
|
2017-03-08 02:03:13 -06:00
|
|
|
admin_password = ServerMasterInstall.admin_password
|
|
|
|
admin_password = extend_knob(
|
|
|
|
admin_password,
|
2016-11-09 05:49:25 -06:00
|
|
|
# pylint: disable=no-member
|
2017-03-08 02:03:13 -06:00
|
|
|
cli_names=list(admin_password.cli_names) + ['-a'],
|
2016-11-09 05:49:25 -06:00
|
|
|
)
|
|
|
|
|
2017-03-08 02:03:13 -06:00
|
|
|
ip_addresses = extend_knob(
|
|
|
|
ServerMasterInstall.ip_addresses, # pylint: disable=no-member
|
2016-11-09 05:49:25 -06:00
|
|
|
description="Master Server IP Address. This option can be used "
|
|
|
|
"multiple times",
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
ServerInstall = cli.install_tool(
|
|
|
|
CompatServerMasterInstall,
|
|
|
|
command_name='ipa-server-install',
|
|
|
|
log_file_name=paths.IPASERVER_INSTALL_LOG,
|
2018-05-02 10:35:34 -05:00
|
|
|
console_format='%(message)s',
|
2016-11-09 05:49:25 -06:00
|
|
|
debug_option=True,
|
2018-05-02 10:35:34 -05:00
|
|
|
verbose=True,
|
2016-11-09 05:49:25 -06:00
|
|
|
uninstall_log_file_name=paths.IPASERVER_UNINSTALL_LOG,
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
def run():
|
|
|
|
ServerInstall.run_cli()
|