PBWebGuy
2011-Jun-06 21:16 UTC
[Puppet Users] No matching value for selector param ''1'' with case and ? statements
I have been getting an error message " No matching value for selector
param ''1''" 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 message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to
puppet-users+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.
Apparently Analagous Threads
- Passenger Error "during the evaluation of config/environment.rb"
- Error 400 on SERVER - pe_mcollective - missing value of param 'undef'
- mod_passenger failed installation from puppetlab yum repo
- passenger with ruby enterprise edition
- Puppet / Passenger SSL Problems with DRBD
