8.1.4.1.3. cobbler.modules.installation package

8.1.4.1.3.1. Submodules

8.1.4.1.3.2. cobbler.modules.installation.post_log module

(C) 2008-2009, Red Hat Inc. Michael DeHaan <michael.dehaan AT gmail>

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA

cobbler.modules.installation.post_log.register() → str[source]

The mandatory Cobbler module registration hook.

cobbler.modules.installation.post_log.run(api, args, logger) → int[source]
Parameters:
  • api – This parameter is unused currently.
  • args – An array of three elements. Type (system/profile), name and ip. If no ip is present use a ?.
  • logger – This parameter is unused currently.
Returns:

Always 0

8.1.4.1.3.3. cobbler.modules.installation.post_power module

class cobbler.modules.installation.post_power.reboot(api, target)[source]

Bases: threading.Thread

run()[source]

Method representing the thread’s activity.

You may override this method in a subclass. The standard run() method invokes the callable object passed to the object’s constructor as the target argument, if any, with sequential and keyword arguments taken from the args and kwargs arguments, respectively.

cobbler.modules.installation.post_power.register() → str[source]

The mandatory Cobbler module registration hook.

cobbler.modules.installation.post_power.run(api, args, logger) → int[source]

Obligatory trigger hook.

Parameters:
  • api – The api to resolve information with.
  • args – This is an array containing two objects. 0: String with the content “target” or “profile”. 1: The name of target or profile
  • logger – Unused parameter for this hook.
Returns:

0 on success.

8.1.4.1.3.4. cobbler.modules.installation.post_puppet module

8.1.4.1.3.5. cobbler.modules.installation.post_report module

8.1.4.1.3.6. cobbler.modules.installation.pre_clear_anamon_logs module

(C) 2008-2009, Red Hat Inc. James Laska <jlaska@redhat.com> Bill Peck <bpeck@redhat.com>

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA

cobbler.modules.installation.pre_clear_anamon_logs.register() → str[source]

This pure python trigger acts as if it were a legacy shell-trigger, but is much faster. The return of this method indicates the trigger type.

Returns:Always: “/var/lib/cobbler/triggers/install/pre/*
cobbler.modules.installation.pre_clear_anamon_logs.run(api, args, logger) → int[source]
The list of args should have one element:
  • 1: the name of the system or profile
Parameters:
  • api – The api to resolve metadata with.
  • args – This should be a list as described above.
  • logger – This parameter is unused currently.
Returns:

“0” on success.

8.1.4.1.3.7. cobbler.modules.installation.pre_log module

cobbler.modules.installation.pre_log.register() → str[source]

This pure python trigger acts as if it were a legacy shell-trigger, but is much faster. The return of this method indicates the trigger type.

Returns:Always: “/var/lib/cobbler/triggers/install/pre/*
cobbler.modules.installation.pre_log.run(api, args: list, logger) → int[source]

The method runs the trigger, meaning this logs that an installation has started.

The list of args should have three elements:
  • 0: system or profile
  • 1: the name of the system or profile
  • 2: the ip or a “?”
Parameters:
  • api – This parameter is currently unused.
  • args – Already described above.
  • logger – This parameter is currently unused.
Returns:

A “0” on success.

8.1.4.1.3.8. cobbler.modules.installation.pre_puppet module

8.1.4.1.3.9. Module contents