Hi All,

I am new to puppet template and need your help to update the different 
cluster name to elasticsearch.erb based on the environments 
(QA,staging,prod)

init.pp

$QA = xyz.test.com,abc.test.com,zbc.test.com
$staging = xyz.stg.com, abc.stg.com,zbc.stg.com
$prod = xyz.prd.com,abc.prd.com,zbc.prd.com`

elasticsearch.yml.erb:

node.name: <%= fqdn %>
network.bind_host: <%= @ipaddress %>
network.publish_host: <%= @ipaddress %>
network.host: <%= @ipaddress %>
*cluster name: *

is if statement can do this ? like clustername : <%if fqdn == $qa then 
elastic-qa-cluster?

Appreciate all your help

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/42482304-87ef-4439-8a74-e93660d02a70%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to