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: object

This class sets up configuration options based on the detected Linux distribution.

bind_zonefiles: Path = PosixPath('/var/lib/named')
completion_path: Path = PosixPath('/usr/share/bash-completion/completions')
datapath: Path = PosixPath('/usr/share/cobbler')
defaultpath: Path = PosixPath('etc/sysconfig')
docpath: Path = PosixPath('/usr/share/man')
etcpath: Path = PosixPath('/etc/cobbler')
grub_mod_folder: Path = PosixPath('/usr/share/grub2')
httpd_group: str = 'apache'

Group which is used to execute apache2.

httpd_service: str = 'apache2.service'
httpd_user: str = 'apache'

User which is used to execute apache2.

ipxe_folder: Path = PosixPath('/usr/share/ipxe')
libpath: Path = PosixPath('/var/lib/cobbler')
logpath: Path = PosixPath('/var/log')
memdisk_folder: Path = PosixPath('/usr/share/syslinux')
pxelinux_folder: Path = PosixPath('/usr/share/syslinux')
secure_grub_file: str = 'grub\\.efi'
secure_grub_folder: str = '/usr/share/efi/*/'
shim_file: str = 'shim\\.efi'
shim_folder: str = '/usr/share/efi/*/'
syslinux_dir: Path = PosixPath('/usr/share/syslinux')
systemd_dir: Path = PosixPath('/etc/systemd/system')
tftproot: Path = PosixPath('/srv/tftpboot')

Directory which the TFTP server is offering.

to_context() Dict[str, str][source]

This creates a context dictionary that can be used to template a given file.

webconfig: Path = PosixPath('/etc/apache2/vhosts.d')
webroot: Path = PosixPath('/srv/www')

Directory where Cobbler can create the directory which the webserver can serve.

webrootconfig: Path = PosixPath('/etc/apache2')
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.

7.1.4.5. cobbler.cobblerd.setup module

7.1.4.6. Module contents