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

how to use newline character('\n') in puppet template

$
0
0
#site.pp $values = [val1, val2, otherval] file { "demo.txt": ensure => present, path => "C:\\Software\demo.txt", content => template('temp/temp.rb'), } } #temp.erb <% @values.each do |val| -%> Some stuff with <%= val %><% end -%> I want the output in seperate line but it is not working. it gives the output as: Some stuff with val1 Some stuff with val2 Some stuff with otherval but I want the output like: Some stuff with val1 Some stuff with val2 Some stuff with otherval please help me.

Viewing all articles
Browse latest Browse all 6104

Trending Articles



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