7.1.2.1.1. cobbler.autoinstall.generate package

7.1.2.1.1.1. Submodules

7.1.2.1.1.2. cobbler.autoinstall.generate.agama module

This module is responsible to generate Agama files and metadata.

More information can be found in the following places:

class cobbler.autoinstall.generate.agama.AgamaGenerator(api: CobblerAPI)[source]

Bases: AutoinstallBaseGenerator

This is the specific implementation to generate files related to a given Agama installation.

generate_autoinstall(obj: BootableItem, requested_file: Template, autoinstaller_subfile: str = '') str[source]

Generates an auto-installation file.

Parameters:
  • obj – The object to generate the file for.

  • template – The template that should be used for rendering the requested file.

  • requested_file – The name of the requested file.

  • autoinstaller_subfile – TODO

Returns:

The generated AutoYaST XML file.

generate_autoinstall_metadata(obj: BootableItem, key: str) Any | None[source]

This method generates special metadata that might be requested individually.

Parameters:
  • obj – The item that is in the context of the metadata that is requested.

  • key – The name of the metadata key that should be generated.

Returns:

Returns None in case the key is not known.

7.1.2.1.1.3. cobbler.autoinstall.generate.autoyast module

This module is responsible to generate AutoYaST files and metadata.

More information can be found here

class cobbler.autoinstall.generate.autoyast.AutoYaSTGenerator(api: CobblerAPI)[source]

Bases: AutoinstallBaseGenerator

This is the specific implementation to generate files related to a given AutoYaST installation.

generate_autoinstall(obj: BootableItem, requested_file: Template, autoinstaller_subfile: str = '') str[source]

Generates an auto-installation file.

Parameters:
  • obj – The object to generate the file for.

  • template – The template that should be used for rendering the requested file.

  • requested_file – The name of the requested file.

  • autoinstaller_subfile – TODO

Returns:

The generated AutoYaST XML file.

generate_autoinstall_metadata(obj: BootableItem, key: str) Any | None[source]

This method generates special metadata that might be requested individually.

Parameters:
  • obj – The item that is in the context of the metadata that is requested.

  • key – The name of the metadata key that should be generated.

Returns:

Returns None in case the key is not known.

7.1.2.1.1.4. cobbler.autoinstall.generate.base module

Module that holds all abstract methods and classes that are acting as interfaces for the rest of the auto-installation module.

class cobbler.autoinstall.generate.base.AutoinstallBaseGenerator(api: CobblerAPI)[source]

Bases: object

Abstract base class to define the interface that is available to auto-installation generators.

abstractmethod generate_autoinstall(obj: BootableItem, requested_file: Template, autoinstaller_subfile: str = '') str[source]

Generates an auto-installation file.

Parameters:
  • obj – The object to generate the file for.

  • template – The template that should be used for rendering the requested file.

  • requested_file – The name of the requested file.

  • autoinstaller_subfile – TODO

Returns:

The generated AutoYaST XML file.

abstractmethod generate_autoinstall_metadata(obj: BootableItem, key: str) Any | None[source]

This method generates special metadata that might be requested individually.

Parameters:
  • obj – The item that is in the context of the metadata that is requested.

  • key – The name of the metadata key that should be generated.

Returns:

Returns None in case the key is not known.

7.1.2.1.1.5. cobbler.autoinstall.generate.cloud_init module

This module is responsible to generate cloud-init files and metadata.

More information can be found here

class cobbler.autoinstall.generate.cloud_init.CloudInitGenerator(api: CobblerAPI)[source]

Bases: AutoinstallBaseGenerator

This is the specific implementation to generate files related to a given cloud-init installation. Cobbler implements the nocloud provider.

generate_autoinstall(obj: BootableItem, requested_file: Template, autoinstaller_subfile: str = '') str[source]

Generates an auto-installation file.

Parameters:
  • obj – The object to generate the file for.

  • template – The template that should be used for rendering the requested file.

  • requested_file – The name of the requested file.

  • autoinstaller_subfile – TODO

Returns:

The generated AutoYaST XML file.

generate_autoinstall_metadata(obj: BootableItem, key: str) Any | None[source]

This method generates special metadata that might be requested individually.

Parameters:
  • obj – The item that is in the context of the metadata that is requested.

  • key – The name of the metadata key that should be generated.

Returns:

Returns None in case the key is not known.

7.1.2.1.1.6. cobbler.autoinstall.generate.kickstart module

This module is responsible to generate kickstart files and metadata.

Resources for kickstart-based installations can be found in the following locations:

class cobbler.autoinstall.generate.kickstart.KickstartGenerator(api: CobblerAPI)[source]

Bases: AutoinstallBaseGenerator

This is the specific implementation to generate files related to a given kickstart installation.

generate_autoinstall(obj: BootableItem, requested_file: Template, autoinstaller_subfile: str = '') str[source]

Generates an auto-installation file.

Parameters:
  • obj – The object to generate the file for.

  • template – The template that should be used for rendering the requested file.

  • requested_file – The name of the requested file.

  • autoinstaller_subfile – TODO

Returns:

The generated AutoYaST XML file.

generate_autoinstall_metadata(obj: BootableItem, key: str) Any | None[source]

This method generates special metadata that might be requested individually.

Parameters:
  • obj – The item that is in the context of the metadata that is requested.

  • key – The name of the metadata key that should be generated.

Returns:

Returns None in case the key is not known.

7.1.2.1.1.7. cobbler.autoinstall.generate.legacy module

This module is responsible to generate auto-installation files and metadata. This is the legacy “mixed” way that combines AutoYAST, Kickstart and Preseed.

class cobbler.autoinstall.generate.legacy.LegacyGenerator(api: CobblerAPI)[source]

Bases: AutoinstallBaseGenerator

This is the legacy way of requesting auto-installation templates. New features will not be added and only bugs will be fixed.

generate_autoinstall(obj: BootableItem, requested_file: Template, autoinstaller_subfile: str = '') str[source]

Generates an auto-installation file.

Parameters:
  • obj – The object to generate the file for.

  • template – The template that should be used for rendering the requested file.

  • requested_file – The name of the requested file.

  • autoinstaller_subfile – TODO

Returns:

The generated AutoYaST XML file.

generate_autoinstall_metadata(obj: BootableItem, key: str) Any | None[source]

This method generates special metadata that might be requested individually.

Parameters:
  • obj – The item that is in the context of the metadata that is requested.

  • key – The name of the metadata key that should be generated.

Returns:

Returns None in case the key is not known.

7.1.2.1.1.8. cobbler.autoinstall.generate.preseed module

This module is responsible to generate preseed files and metadata.

Documentation for Debian Preseed can be found in the wiki and in the guide

class cobbler.autoinstall.generate.preseed.PreseedGenerator(api: CobblerAPI)[source]

Bases: AutoinstallBaseGenerator

This is the specific implementation to generate files related to a given preseed installation.

generate_autoinstall(obj: BootableItem, requested_file: Template, autoinstaller_subfile: str = '') str[source]

Generates an auto-installation file.

Parameters:
  • obj – The object to generate the file for.

  • template – The template that should be used for rendering the requested file.

  • requested_file – The name of the requested file.

  • autoinstaller_subfile – TODO

Returns:

The generated AutoYaST XML file.

generate_autoinstall_metadata(obj: BootableItem, key: str) Any | None[source]

This method generates special metadata that might be requested individually.

Parameters:
  • obj – The item that is in the context of the metadata that is requested.

  • key – The name of the metadata key that should be generated.

Returns:

Returns None in case the key is not known.

7.1.2.1.1.9. cobbler.autoinstall.generate.windows module

This module is responsible to generate Wundows unattend.xml files and metadata.

https://learn.microsoft.com/en-us/windows-hardware/manufacture/desktop/update-windows-settings-and-scripts-create-your-own-answer-file-sxs?view=windows-11

class cobbler.autoinstall.generate.windows.WindowsGenerator(api: CobblerAPI)[source]

Bases: AutoinstallBaseGenerator

This is the specific implementation to generate files related to a given unattended Windows installation.

generate_autoinstall(obj: BootableItem, requested_file: Template, autoinstaller_subfile: str = '') str[source]

Generates an auto-installation file.

Parameters:
  • obj – The object to generate the file for.

  • template – The template that should be used for rendering the requested file.

  • requested_file – The name of the requested file.

  • autoinstaller_subfile – TODO

Returns:

The generated AutoYaST XML file.

generate_autoinstall_metadata(obj: BootableItem, key: str) Any | None[source]

This method generates special metadata that might be requested individually.

Parameters:
  • obj – The item that is in the context of the metadata that is requested.

  • key – The name of the metadata key that should be generated.

Returns:

Returns None in case the key is not known.

7.1.2.1.1.10. Module contents

This module is responsible to dynamically generate all files required to autoinstall a system.