templates/agent-conf.d/zk.yaml.erb (22 lines of code) (raw):

# # MANAGED BY PUPPET # init_config: instances: <% @servers.each do |server| -%> - host: <%= server['host'] %> port: <%= server['port'] %> timeout: 3 # If `expected_mode` is defined we'll send a service check where the # status is determined by whether the current mode matches the expected. # Options: leader, follower, standalone <% if !server['expected_mode'].nil? -%> expected_mode: <%= server['expected_mode'] %> <% end -%> <% if !server['tags'].nil? && server['tags'].any? -%> tags: <% server['tags'].each do |tag| -%> - <%= tag %> <% end -%> <% end -%> <% end -%>