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

create multiple parameters in config file based on variable array

$
0
0
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.

Viewing all articles
Browse latest Browse all 6104

Trending Articles



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