NAME
Tapper::Remote::Config
SYNOPSIS
use Tapper::Remote::Config;
NAME
Tapper::Remote::Config - Get configuration from Tapper host
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.
@param string - state
@return success - hash reference containing the config @return error - error string
AUTHORS
AMD OSRC Tapper Team <tapper@amd64.org>
Tapper Team <tapper-ops@amazon.com>
COPYRIGHT AND LICENSE
This software is Copyright (c) 2016 by Advanced Micro Devices, Inc..
This is free software, licensed under:
The (two-clause) FreeBSD License