How do you concatenate strings in a Puppet .pp file?

后端 未结 6 1114
醉话见心
醉话见心 2021-02-03 17:27

Here is my naive approach:

# puppet/init.pp
$x = \'hello \' + 
     \'goodbye\'

This does not work. How does one concatenate strings i

6条回答
  •  [愿得一人]
    2021-02-03 17:50

    You could use the join() function from puppetlabs-stdlib. I was thinking there should be a string concat function there, but I don't see it. It'd be easy to write one.

提交回复
热议问题