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

Add variable in line that contains double quotation mark (")

$
0
0
Hello I am new with Puppet and creating configuration file. I would like to add the hostname as variable in the line. However, it got an error I think because of double quotation mark (") in the line. $hostlocal = "${hostname}" file {'puppet_facts_example': ensure => file, path => '/tmp/test.txt', content => "modparam("topology_hiding", "th_callid_prefix", "$hostlocal_")" Is there any way to add the variable in the line contains double quotation mark (") ? Thanks

Viewing all articles
Browse latest Browse all 6104

Trending Articles



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