What I have is something like this
### puppet variables
$ip_node1 = '1.2.3.4',
$ip_node2 = '1.2.3.5',
$ip_node3 = '1.2.3.6', ### config file servers="<%= @ip_node1 %>,<%= @ip_node2 %>,<%= @ip_node3 %>" What I want is to create a dynamic array which would sometimes have 2,3,5,9 or any number of values. Based on this array I want to have values in my config file servers parameter. ### Update I found the solution to above, but I am looking for another one
In this case, requirement is to have a standard port number next to ip such as
1.2.3.4:4545 What's the best way to do this without user having to type it every time next to IP in the array.
$ip_node2 = '1.2.3.5',
$ip_node3 = '1.2.3.6', ### config file servers="<%= @ip_node1 %>,<%= @ip_node2 %>,<%= @ip_node3 %>" What I want is to create a dynamic array which would sometimes have 2,3,5,9 or any number of values. Based on this array I want to have values in my config file servers parameter. ### Update I found the solution to above, but I am looking for another one
In this case, requirement is to have a standard port number next to ip such as
1.2.3.4:4545 What's the best way to do this without user having to type it every time next to IP in the array.