7.1.4. cobbler.cobblerd package
7.1.4.1. Submodules
7.1.4.2. cobbler.cobblerd.cli module
7.1.4.3. cobbler.cobblerd.daemon module
7.1.4.4. cobbler.cobblerd.distro_options module
Module to provide reasonable defaults to the cobblerd setup utility.
- class cobbler.cobblerd.distro_options.DistroOptions(datapath: Path = PosixPath('/usr/share/cobbler'), docpath: Path = PosixPath('/usr/share/man'), etcpath: Path = PosixPath('/etc/cobbler'), libpath: Path = PosixPath('/var/lib/cobbler'), logpath: Path = PosixPath('/var/log'), systemd_dir: Path = PosixPath('/etc/systemd/system'), completion_path: Path = PosixPath('/usr/share/bash-completion/completions'), httpd_user: str = 'apache', httpd_group: str = 'apache', httpd_service: str = 'apache2.service', webroot: Path = PosixPath('/srv/www'), webconfig: Path = PosixPath('/etc/apache2/vhosts.d'), webrootconfig: Path = PosixPath('/etc/apache2'), tftproot: Path = PosixPath('/srv/tftpboot'), bind_zonefiles: Path = PosixPath('/var/lib/named'), defaultpath: Path = PosixPath('etc/sysconfig'), shim_folder: str = '/usr/share/efi/*/', shim_file: str = 'shim\\.efi', secure_grub_folder: str = '/usr/share/efi/*/', secure_grub_file: str = 'grub\\.efi', ipxe_folder: Path = PosixPath('/usr/share/ipxe'), pxelinux_folder: Path = PosixPath('/usr/share/syslinux'), memdisk_folder: Path = PosixPath('/usr/share/syslinux'), syslinux_dir: Path = PosixPath('/usr/share/syslinux'), grub_mod_folder: Path = PosixPath('/usr/share/grub2'))[source]
Bases:
objectThis class sets up configuration options based on the detected Linux distribution.
- to_context() Dict[str, str][source]
This creates a context dictionary that can be used to template a given file.
- cobbler.cobblerd.distro_options.get_distro_options() DistroOptions[source]
Detects the Linux distribution and sets up environment variables accordingly. Returns an instance of DistroOptions with the appropriate settings.