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

Added default values for configuration variables #92

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ zookeeper_autopurge_purgeInterval: 0
zookeeper_autopurge_snapRetainCount: 10
zookeeper_cluster_ports: "2888:3888"
zookeeper_max_client_connections: 60
pre_alloc_size: 64000
snap_count: 100000
leader_serves: yes



data_dir: /var/lib/zookeeper
log_dir: /var/log/zookeeper
Expand Down
4 changes: 4 additions & 0 deletions templates/zoo.cfg.j2
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ autopurge.purgeInterval={{ zookeeper_autopurge_purgeInterval }}
autopurge.snapRetainCount={{ zookeeper_autopurge_snapRetainCount }}
{% endif %}

preAllocSize={{ pre_alloc_size }}
snapCount={{ snap_count }}
leaderServes={{ leader_serves }}

{% for server in zookeeper_hosts %}
{% if server.host is defined %}
{% if server.ip is defined %}
Expand Down