Guy Matz
2011-Jun-16 15:51 UTC
[Puppet Users] special handling for template file with XML?
hi, i get the following error when trying to use a template with XML in it: Could not parse for environment production: Syntax error at ''<'' So I tried using the HTML & "codes" for special chars but now get: "Could not parse for environment production: Could not match <?xml" anyone know if I need to specially handle XML templates? thanks a lot, Guy -- 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.
jcbollinger
2011-Jun-20 14:33 UTC
[Puppet Users] Re: special handling for template file with XML?
On Jun 16, 10:51 am, Guy Matz <gm...@matz.org> wrote:> hi, > i get the following error when trying to use a template with XML in it: > Could not parse for environment production: Syntax error at ''<'' > > So I tried using the HTML & "codes" for special chars but now get: > "Could not parse for environment production: Could not match <?xml" > > anyone know if I need to specially handle XML templates?Generally, no, you shouldn''t need any special handling for templates of XML files. If you provide an example template with which the error can be reproduced then we would have a better chance of helping you more specifically. Using XML character entities in your template is the wrong way to go, however. It might make ERB happier, but the resulting file wouldn''t mean the same thing to an XML processor. 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.
Nigel Kersten
2011-Jun-20 15:50 UTC
Re: [Puppet Users] special handling for template file with XML?
On Thu, Jun 16, 2011 at 8:51 AM, Guy Matz <gmatz@matz.org> wrote:> hi, > i get the following error when trying to use a template with XML in it: > Could not parse for environment production: Syntax error at ''<'' > > So I tried using the HTML & "codes" for special chars but now get: > "Could not parse for environment production: Could not match <?xml" > > anyone know if I need to specially handle XML templates? >What version of Puppet are you running? Can you post the manifest and template? -- 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.