Displaying 1 result from an estimated 1 matches for "client_env".
Did you mean:
client_e
2011 Jun 06
0
No matching value for selector param '1' with case and ? statements
..." when ever I use the following code in a class. What is
strange is if I run the code directly with "puppet -v filename" where
the code is in the filename or I stick the code in the nodes.pp file
it works perfectly. When I put it into a class and include in the
node it breaks.
$client_env = $hostname ? {
/^mr/ => "mirror",
default => "UNKNOWN"
}
info "hostname=[${hostname}], client_env=[${client_env}]"
I''m running Puppet 2.6.8, Ruby 1.8.5, and Passenger 2.2.11.
Any thoughts?
TIA,
John
--
You received this mes...