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

prevent interpolation with file_line and hiera

$
0
0
I am using file_line to add a line to my sudoers file. The line I need to add includes a "%{user}" which I need to be quoted literally. If I use file_line from my site.pp it works great...the line is passed with single quotes and interpolation does not occur. However, when I use file_line within a Hiera construct the "%{user}" gets interpolated and the resulting string is missing this required portion. I've tried various escapes all without success. I'm out of ideas at this point. Hopefully the community here can provide an answer.

Viewing all articles
Browse latest Browse all 6104

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>