class ServerMasterInstall(installs_master(ServerInstallInterface)): """ Server master installer """ domain_name = None servers = None dm_password = None no_wait_for_dns = True admin_password = None host_password = None keytab = None setup_ca = True setup_kra = False def __init__(self, **kwargs): super(ServerMasterInstall, self).__init__(**kwargs) master_init(self) @step() def main(self): master_install_check(self) yield master_install(self) @main.uninstaller def main(self): uninstall_check(self) yield uninstall(self)
if knob.value is not None ] raise RuntimeError( "You cannot specify '{0}' option(s) with replica file." .format(", ".join(conflicting_knob_names))) if self.setup_dns: if (not self.forwarders and not self.no_forwarders and not self.auto_forwarders): raise RuntimeError( "You must specify at least one of --forwarder, " "--auto-forwarders, or --no-forwarders options") ServerMasterInstallInterface = installs_master(ServerInstallInterface) class ServerMasterInstall(ServerMasterInstallInterface): """ Server master installer """ force_join = False servers = None no_wait_for_dns = True host_password = None keytab = None setup_ca = True domain_name = extend_knob(ServerMasterInstallInterface.domain_name, )
raise RuntimeError( "You cannot specify '{0}' option(s) with replica file." .format(", ".join(conflicting_knob_names)) ) if self.setup_dns: if (not self.forwarders and not self.no_forwarders and not self.auto_forwarders): raise RuntimeError( "You must specify at least one of --forwarder, " "--auto-forwarders, or --no-forwarders options") ServerMasterInstallInterface = installs_master(ServerInstallInterface) class ServerMasterInstall(ServerMasterInstallInterface): """ Server master installer """ force_join = False servers = None no_wait_for_dns = True host_password = None keytab = None setup_ca = True domain_name = extend_knob(