perhaps you should enclose the variables in quotes to something like
this:

"http://${yumserver}/repos/vmware-${esxversion-rhel6-64}";

On Oct 5, 8:46 pm, Steve Snodgrass <phe...@gmail.com> wrote:
> While testing puppet 2.7, I found that one of my manifests broke
> because of the following quoted string:
>
> "http://$yumserver/repos/vmware-$esxversion-rhel6-64";
>
> Everything in the resulting string after "vmware-" was blank.  After
> some experiments I found that puppet 2.7 allows dashes in variable
> names, and was interpreting "$esxversion-rhel6-64" as one big
> variable.  Of course adding curly braces fixes the problem, but that
> seems like a significant change.  Was it intended?
>
> Results of applying a simple test manifest:
>
> notice("Dashtest: $fqdn-is-my-hostname")
>
> Puppet 2.6.11:
>
> notice: Scope(Class[main]): Dashtest: foobar.example.com-is-my-
> hostname
>
> Puppet 2.7.5:
>
> notice: Scope(Class[main]): Dashtest:
>
> -Steve

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to