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

using values of Puppet Facts in template erb file

$
0
0
I am trying to find how can we use puppet facts values into an template configuration erb file. sample template variable to be configured zk.l.conn= expected "zk.l.conn" configured dynamically by puppet using puppet facts as below zk.l.conn=ip-xx-31-xx-xxx.ec2.internal:2181,ip-xxx-31-xx- xxx.ec2.internal:2181,ip-172-xxx-xxx-xx.ec2.internal:2181 puppet facts data : "zk-internal": [ { "host": "ip-xx-31-xx-xxx.ec2.internal", "port": 2181, "priority": 2, "weight": 10 }, { "host": "ip-xxx-31-xx-xxx.ec2.internal", "port": 2181, "priority": 3, "weight": 10 }, { "host": "ip-172-xxx-xxx-xx.ec2.internal", "port": 2181, "priority": 1, "weight": 10 } ], Thank you

Viewing all articles
Browse latest Browse all 6104

Trending Articles



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