Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix zookeeper template #150

Merged
merged 2 commits into from Jan 20, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
18 changes: 12 additions & 6 deletions templates/agent-conf.d/zk.yaml.erb
Expand Up @@ -7,12 +7,18 @@ init_config:
instances:
<% @servers.each do |server| -%>
- host: <%= server['host'] %>
- port: <%= server['port'] %>
- timeout: 3
<% if !server['tags'].nil? && server['tags'].any? -%>
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 -%>
<% server['tags'].each do |tag| -%>
- <%= tag %>
<% end -%>
<% end -%>
<% end -%>