Quantcast
Channel: Ask Puppet: Puppet DevOps Q&A Community - RSS feed
Viewing all articles
Browse latest Browse all 75

How to escape special characters in template

$
0
0
I've got a file that needs the following content verbatim (the $ should be in the file, not interpreted). $pbsserver foo.localdomain I've made a template like so \$pbsserver <%= @fqdn %> Yet, when I apply the manifest, I receive the following error Error: Parameter source failed on File[/var/spool/torque/mom_priv/config]: Cannot use relative URLs '$pbsserver alps.ac' at /etc/puppet/modules/alps/manifests/torque.pp:31 Wrapped exception: Cannot use relative URLs '$pbsserver alps.ac' How can I convince puppet that the $pbsserver text is not a variable, nor is it a relative url?

Viewing all articles
Browse latest Browse all 75

Trending Articles