Is there a way to append an erb code to a config file:
<% @zookeeper.each_with_index do |ip, id| %>
<%= "server.#{id}=#{ip}:2888:3888" %>
<% end %>
No, this is not a feature Chef supports directly. The template
resource expects to control the entire file contents. This ensures idempotence and convergence.
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments