Displaying 1 result from an estimated 1 matches for "mynewserver".
2010 May 07
1
variables in variable and class names
...st is just uses the defaults. For files this is easy, but for variables
or classes i found no way so far to implement this.
Here is an NON working example that may describe what i want to do:
-----------------------------------------------------------
# Settings i want to overwrite only for "mynewserver".
# This class is only there if i need at least one special settings
class hostconfig::mynewserver::settings {
$myvar = "overwritten for this host"
}
# Load the settings class if it exists
if defined( hostconfig::${hostname}::settings ) {
include hostconfig::${hostname}::set...