OPSI.Util.Task.ConfigureBackend package¶
Submodules¶
Module contents¶
Functionality to automatically configure an OPSI backend.
New in version 4.0.4.6.
author: | Niko Wenselowski <n.wenselowski@uib.de> |
---|---|
license: | GNU Affero General Public License version 3 |
-
OPSI.Util.Task.ConfigureBackend.
getBackendConfiguration
(backendConfigFile, customLocals=None)¶ Reads the backend configuration from the given file.
Parameters: - backendConfigFile – Path to the backend configuration file.
- customLocals (dict) – If special locals are needed for the config file please pass them here. If this is None defaults will be used.
-
OPSI.Util.Task.ConfigureBackend.
updateConfigFile
(backendConfigFile, newConfig, notificationFunction=None)¶ Updates a config file with the corresponding new configuration.
Parameters: - backendConfigFile – path to the backend configuration
- newConfig – the new configuration.
- notificationFunction (func) – A function that log messages will be passed on to. Defaults to logger.notice