univention.management.console.modules.join package#

univention.management.console.modules.join.get_master_dns_lookup() dict[source]#
class univention.management.console.modules.join.HostSanitizer(regex_pattern: Pattern[str] | str | None = None, re_flags: int = 0, minimum: int | None = None, maximum: int | None = None, **kwargs: Any)[source]#

Bases: StringSanitizer

class univention.management.console.modules.join.Progress(max_steps=100)[source]#

Bases: object

reset(max_steps: int = 100) None[source]#
poll() dict[source]#
finish() None[source]#
info_handler(info: str) None[source]#
error_handler(err: str) None[source]#
component_handler(component: str) None[source]#
critical_handler(critical: bool) None[source]#
step_handler(steps: int) None[source]#
add_steps(steps: int = 1) None[source]#
univention.management.console.modules.join.system_join(hostname: str, username: str, password: str, info_handler: ~collections.abc.Callable = <function _dummyFunc>, error_handler: ~collections.abc.Callable = <function _dummyFunc>, critical_handler: ~collections.abc.Callable = <function _dummyFunc>, step_handler: ~collections.abc.Callable = <function _dummyFunc>, component_handler: ~collections.abc.Callable = <function _dummyFunc>) None[source]#
univention.management.console.modules.join.run_join_scripts(scripts: list, force: bool, username: str, password: str, info_handler: ~collections.abc.Callable = <function _dummyFunc>, error_handler: ~collections.abc.Callable = <function _dummyFunc>, critical_handler: ~collections.abc.Callable = <function _dummyFunc>, step_handler: ~collections.abc.Callable = <function _dummyFunc>, component_handler: ~collections.abc.Callable = <function _dummyFunc>) None[source]#
univention.management.console.modules.join.run(cmd: list, steps_per_script: float, info_handler: ~collections.abc.Callable = <function _dummyFunc>, error_handler: ~collections.abc.Callable = <function _dummyFunc>, critical_handler: ~collections.abc.Callable = <function _dummyFunc>, step_handler: ~collections.abc.Callable = <function _dummyFunc>, component_handler: ~collections.abc.Callable = <function _dummyFunc>) None[source]#
class univention.management.console.modules.join.Instance(*args, **kwargs)[source]#

Bases: Base

init() None[source]#

this function is invoked after the module process started.

dpkg_locked(request, *args, **kwargs)[source]#

Do not execute join scripts when dpkg is running (e.g. via App Center)

query(request, *args, **kwargs)[source]#

collects status about join scripts

joined(request, *args, **kwargs)[source]#
progress(request, *args, **kwargs)[source]#
running(request, *args, **kwargs)[source]#

returns true if a join script is running.

master(request, *args, **kwargs)[source]#

returns the hostname of the Primary Directory Node as fqdn

logview(request, *args, **kwargs)[source]#

Returns the last 2MB of the join.log file

join(request)[source]#
run(request)[source]#

runs the given join scripts