On Sep 25, 2013, at 8:12 AM, John Simpson <[email protected]> wrote:
> file { '/etc/httpd/conf.d/ssl.conf' :
> ensure => file ,
> content => template ( "${module_name}{$name}.erb" ) ,
> }
>
> Here $name expands to "apache", so the filename passed to template() is
> "apacheapache.erb", rather than the expected and desired value
> "apache/etc/httpd/conf.d/ssl.conf.erb".
Is this the literal syntax? Because you have "{$name}" instead of "${name}".
I can't explain why the former would expand the way it does, unless the braces
around the variable name have special meaning. I would expect you'd get the
literal braces in the expanded value. Not a real answer, but it does look
unintentional.
--
Brian Lalor
[email protected]
http://github.com/blalor
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-users.
For more options, visit https://groups.google.com/groups/opt_out.