NAME
Tapper::Remote::Config - Get configuration from Tapper host
SYNOPSIS
use Tapper::Remote::Config;
FUNCTIONS
get_tapper_host
Get hostname of tapper MCP host from kernel boot parameters.
@returnlist ($host,port) - string, int - hostname and port of MCP server
gethostname
This function returns the host name of the machine. When NFS root is used together with DHCP the hostname set in the kernel usually equals the IP address received from DHCP as a string. In this case the kernel hostname is set to the DNS hostname associated to this IP address.
@return hostname of the machine as set in the kernel
get_local_data
Get local data needed for all tools running locally on NFS. The function tries to get the MCP host and fetches the config from there. This reduces any need for configuration outside MCP host and thus allows to use unchanged NFS root file systems for both testing and production, with different MCP servers and so on.
@return success - hash reference containing the config @return error - error string
AUTHOR
AMD OSRC Tapper Team, <tapper at amd64.org>
BUGS
None.
SUPPORT
You can find documentation for this module with the perldoc command.
perldoc Tapper
ACKNOWLEDGEMENTS
COPYRIGHT & LICENSE
Copyright 2008-2011 AMD OSRC Tapper Team, all rights reserved.
This program is released under the following license: freebsd