or use the join() function from puppetlabs-stdlib module.
--
Erik Dalén
On Monday 29 October 2012 at 05:08, Johan De Wit wrote:
> Hi,
>
> you can use inline_template, this way you can incorperate ruby code in
> your manifest
>
> $server_string = inline_template("<% server.join(' ') %>"
Hi,
you can use inline_template, this way you can incorperate ruby code in
your manifest
$server_string = inline_template("<% server.join(' ') %>")
see
http://docs.puppetlabs.com/references/latest/function.html#inlinetemplate
hope this helps
Grts
Jo
On 10/29/2012 09:29 AM, Hiu wrote:
h
hi all,
I have an array and i would like to convert it into a string format.
e.g.
$server = ["node1", "node2", "node3"]
when I write my puppet codes
exec { "myscript -S $server":
path =>
}
my $server becomes a continual string like: "node1node2node3", instead of
"node1 node2 node3". How