OPSI.Util.Task.ConfigureBackend.ConfigurationData module¶
Configuration data for the backend.
New in version 4.0.6.1.
| author: | Niko Wenselowski <n.wenselowski@uib.de> | 
|---|---|
| author: | Erol Ueluekmen <e.ueluekmen@uib.de> | 
| license: | GNU Affero General Public License version 3 | 
- 
OPSI.Util.Task.ConfigureBackend.ConfigurationData.addDynamicDepotDriveSelection(backend)¶
- 
OPSI.Util.Task.ConfigureBackend.ConfigurationData.createInstallByShutdownConfig(backend)¶
- Create the configurations that are used by the InstallByShutdown extension if missing. 
- 
OPSI.Util.Task.ConfigureBackend.ConfigurationData.createWANconfigs(backend)¶
- Create the configurations that are used by the WAN extension if missing. 
- 
OPSI.Util.Task.ConfigureBackend.ConfigurationData.initializeConfigs(backend=None, configServer=None, pathToSMBConf=u'/etc/samba/smb.conf')¶
- Adding default configurations to the backend. - Parameters: - backend – The backend to use. If this is Nonean backend will be created.
- configServer (OPSI.Object.OpsiConfigserver) – The ConfigServer that should be used as default. Supply this if clientconfig.configserver.urlorclientconfig.depot.idare not yet set.
- pathToSMBConf (str) – The path the samba configuration.
 - Changed in version 4.0.6.1: Adding - dynamicas value for- clientconfig.depot.driveif missing.- Changed in version 4.0.6.3: Adding WAN extension configurations if missing. - Changed in version 4.0.7.24: On UCR we try read the domain for - clientconfig.depot.userpreferably from Univention config registry (UCR).
- backend – The backend to use. If this is 
- 
OPSI.Util.Task.ConfigureBackend.ConfigurationData.readWindowsDomainFromSambaConfig(pathToConfig=u'/etc/samba/smb.conf')¶
- Get the Windows domain (workgroup) from smb.conf. If no workgroup can be found this returns an empty string. - Parameters: - pathToConfig (str) – Path to the smb.conf - Returns: - The Windows domain in uppercase letters. - Returntype: - str 
- 
OPSI.Util.Task.ConfigureBackend.ConfigurationData.readWindowsDomainFromUCR()¶
- Get the Windows domain from Univention Config registry If no domain can be found this returns an empty string. - Returns: - The Windows domain in uppercase letters. - Returntype: - str