NAME

Tapper::Cmd::Cobbler

SYNOPSIS

This project offers backend functions for all Tapper projects. This module offers access to Cobbler database manipulation.

use Tapper::Cmd::Cobbler;

my $bar = Tapper::Cmd::Cobbler->new();
$bar->host_new($hostname);
...

NAME

Tapper::Cmd::Testrun - Backend functions for manipluation of the cobbler database

METHODS

get_mac_address

Retrieve the mac address of a host from features available in DB.

@param Tapper::Schema::TestrunDB::Result::Host - host object

@return string - mac address

cobbler_execute

Execute a Cobbler command.

@param string - command

@return string - output of cobbler

host_new

Add a new host to Cobbler.

@param string - name of new host @optparam hash ref - additional options, may contain * default => name of the system to copy from, "default" if empty * mac => mac address of the system, get from HostFeatures if empty

@return success - 0 @return error - error message

host_del

Remove a host from Cobbler.

@param string - name of host to remove

@return success - 0 @return error - error message

host_list

List systems that Cobbler already knows, either all or all matching a given criteria.

@optparam hashref - list of criteria to match, possible criteria are * name * status (one of development,testing,acceptance,production)

@return success - list of system names

host_update

Change a number of ascpects of a given host.

@param string - hostname @param hashref - list of aspects to change with new values

@return success - 0 @return error - error string

AUTHOR

AMD OSRC Tapper Team, <tapper at amd64.org>

COPYRIGHT & LICENSE

Copyright 2012 AMD OSRC Tapper Team, all rights reserved.

This program is released under the following license: freebsd

AUTHORS

  • AMD OSRC Tapper Team <tapper@amd64.org>

  • Tapper Team <tapper-ops@amazon.com>

COPYRIGHT AND LICENSE

This software is Copyright (c) 2024 by Advanced Micro Devices, Inc.

This is free software, licensed under:

The (two-clause) FreeBSD License