Other helper modules¶
Module: logging¶
This module is used to deal with all logs. It not only prints them but also writes them to /var/log/syslog
Members¶
- linuxmusterLinuxclient7.logging.debug(message)[source]¶
Do a debug log.
- Parameters
message (str) – The message to log
- linuxmusterLinuxclient7.logging.error(message)[source]¶
Do an error log.
- Parameters
message (str) – The message to log
- linuxmusterLinuxclient7.logging.exception(exception)[source]¶
Log an exception
- Parameters
exception (Exception) – The exception to log
- linuxmusterLinuxclient7.logging.fatal(message)[source]¶
Do a fatal log. If used in onLogin hook, this will create a dialog containing the message.
- Parameters
message (str) – The message to log
- linuxmusterLinuxclient7.logging.info(message)[source]¶
Do an info log.
- Parameters
message (str) – The message to log
Module: localUserHelper¶
This module is used to deal with local users.
Members¶
Module: setup¶
This module is used to setup, clean and upgrade the client.
Members¶
Module: imageHelper¶
This module is used to prepare a client for imaging.
Members¶
Module: hooks¶
This module is used to deal with local hookdirs in /etc/linuxmuster-linuxclient7 and the sysvol.
Members¶
- class linuxmusterLinuxclient7.hooks.Type(value)[source]¶
Enum containing all hook types
- Boot = 0¶
The onBoot hook
- Login = 3¶
The onLogin hook
- LoginAsRoot = 2¶
The onLoginAsRoot hook
- SessionStarted = 4¶
The onSession started hook
- Shutdown = 1¶
The on Shutdown hook
- linuxmusterLinuxclient7.hooks.getLocalHookScript(hookType)[source]¶
Get the path of a local hookscript
- Parameters
hookType (hooks.Type) – The type of hook script to get the path for
- Returns
The path
- Return type
- linuxmusterLinuxclient7.hooks.runHook(hookType)[source]¶
Executes hooks.runLocalHook() and hooks.runRemoteHook()
- Parameters
hookType (hooks.Type) – The type of hook to run
- linuxmusterLinuxclient7.hooks.runLocalHook(hookType)[source]¶
Run all scripts in a local hookdir
- Parameters
hookType (hooks.Type) – The type of hook to run
- linuxmusterLinuxclient7.hooks.runRemoteHook(hookType)[source]¶
Run hookscript from sysvol
- Parameters
hookType (hooks.Type) – The type of hook to run
Module: gpo¶
This module is used to deal with Microsoft GPOs.
Members¶
Module: fileHelper¶
This module is used to deal files.
Members¶
- linuxmusterLinuxclient7.fileHelper.deleteAllInDirectory(directory)[source]¶
Delete all files in a given directory
- linuxmusterLinuxclient7.fileHelper.deleteDirectory(directory)[source]¶
Recoursively delete a directory.
- linuxmusterLinuxclient7.fileHelper.deleteFilesWithExtension(directory, extension)[source]¶
Delete all files with a given extension in a given directory.
Module: environment¶
This module is used to export and unset environment variables during the onLogin/logon hook.
Members¶
Module: keytab¶
This module is used to manage the keytab (/etc/krb5.keytab) file.
Members¶
Module: templates¶
This module is used to manage templates for config files.