8.1.4. cobbler.modules package

8.1.4.1. Subpackages

8.1.4.2. Submodules

8.1.4.3. cobbler.modules.nsupdate_add_system_post module

cobbler.modules.nsupdate_add_system_post.nslog(msg)[source]

Log a message to the logger.

Parameters:

msg – The message to log.

cobbler.modules.nsupdate_add_system_post.register() str[source]

This method is the obligatory Cobbler registration hook.

Returns:

The trigger name or an empty string.

cobbler.modules.nsupdate_add_system_post.run(api, args, logger)[source]

This method executes the trigger, meaning in this case that it updates the dns configuration.

Parameters:
  • api – The api to read metadata from.

  • args – Metadata to log.

  • logger – The logger to audit the action with.

Returns:

“0” on success or a skipped task. If the task failed or problems occurred then an exception is raised.

8.1.4.4. cobbler.modules.nsupdate_delete_system_pre module

cobbler.modules.nsupdate_delete_system_pre.nslog(msg)[source]

Log a message to the logger.

Parameters:

msg – The message to log.

cobbler.modules.nsupdate_delete_system_pre.register() str[source]

This method is the obligatory Cobbler registration hook.

Returns:

The trigger name or an empty string.

Return type:

str

cobbler.modules.nsupdate_delete_system_pre.run(api, args, logger)[source]

This method executes the trigger, meaning in this case that it updates the dns configuration.

Parameters:
  • api – The api to read metadata from.

  • args – Metadata to log.

  • logger – The logger to audit the action with.

Returns:

“0” on success or a skipped task. If the task failed or problems occurred then an exception is raised.

8.1.4.5. cobbler.modules.scm_track module

8.1.4.6. cobbler.modules.sync_post_restart_services module

8.1.4.7. Module contents