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
↧