On Thu, Aug 11, 2011 at 08:42, Tom De Vylder <t...@penumbra.be> wrote:

> I'm trying to distribute a PHP file as a template.
> The problem I'm running into is that each variable in the PHP file is 
> recognized as a Puppet or ERB variable.

That is pretty strange.  So, I tested this to be sure, and I can
manage create a file using that template just fine.

> As you can see the actual ERB parts are filled in nicely but it fails on 
> PHP's variables.
> I've tried escaping the variables and equation marks. I've also renamed the 
> php file not to end with *.erb. To no avail.
>
> Is there a way to avoid this behavior?

Well, it isn't expected behaviour, so you *should* be just fine.
Obviously, though, not so much.

Can you post the actual declaration that creates the file, and the
cached YAML catalog from the node that fails?  Keep in mind that
includes all the configuration data, so if you have passwords or
whatever you might not want to do that.

Thanks,
    daniel
-- 
⎋ Puppet Labs Developer – http://puppetlabs.com
♲ Made with 100 percent post-consumer electrons

-- 
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