diff --git a/ipaserver/install/server/__init__.py b/ipaserver/install/server/__init__.py index 86cb4a9ef..743da8d67 100644 --- a/ipaserver/install/server/__init__.py +++ b/ipaserver/install/server/__init__.py @@ -38,13 +38,14 @@ from .replicainstall import install_check as replica_install_check from .replicainstall import promote_check as replica_promote_check from .upgrade import upgrade_check, upgrade -from .. import ca, conncheck, dns, kra +from .. import adtrust, ca, conncheck, dns, kra class ServerInstallInterface(client.ClientInstallInterface, ca.CAInstallInterface, kra.KRAInstallInterface, dns.DNSInstallInterface, + adtrust.ADTrustInstallInterface, conncheck.ConnCheckInterface): """ Interface of server installers @@ -144,6 +145,10 @@ class ServerInstallInterface(client.ClientInstallInterface, "Domain Level cannot be higher than {0}".format( constants.MAX_DOMAIN_LEVEL)) + setup_adtrust = knob( + None, + description="configure AD trust capability" + ) setup_ca = knob( None, description="configure a dogtag CA", @@ -331,6 +336,11 @@ class ServerInstallInterface(client.ClientInstallInterface, ) pkinit_cert_name = prepare_only(pkinit_cert_name) + add_agents = knob( + bases=adtrust.ADTrustInstallInterface.add_agents + ) + add_agents = replica_install_only(add_agents) + def __init__(self, **kwargs): super(ServerInstallInterface, self).__init__(**kwargs) @@ -548,6 +558,10 @@ class ServerMasterInstall(ServerMasterInstallInterface): def admin_password(self, value): validate_admin_password(value) + # always run sidgen task and do not allow adding agents on first master + add_sids = True + add_agents = False + def __init__(self, **kwargs): super(ServerMasterInstall, self).__init__(**kwargs) master_init(self)