Skip to content

Commit

Permalink
Merge pull request #40 from Edge-Software-Solutions/master
Browse files Browse the repository at this point in the history
Add the ability to template any parameters into the zoo.cfg file
  • Loading branch information
sleighzy authored Jul 31, 2022
2 parents 4c0dd89 + e73a34f commit e2ae885
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ See <https://github.com/ansible/ansible/issues/71528> for more information.
| zookeeper_servers | zookeeper-nodes | See below |
| zookeeper_servers_use_inventory_hostname | false | See below |
| zookeeper_environment | "JVMFLAGS": "-javaagent:/opt/jolokia/jolokia-jvm-1.6.0-agent.jar" ||
| zookeeper_config_params | | A key-value dictionary that will be templated into zoo.cfg |
| zookeeper_firewalld | false ||

## Inventory and zookeeper_servers variable
Expand Down
4 changes: 4 additions & 0 deletions templates/zoo.cfg.j2
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,7 @@ metricsProvider.className={{ zookeeper_metricsprovider_classname }}
metricsProvider.httpPort={{ zookeeper_metricsprovider_httpport }}
metricsProvider.exportJvmInfo={{ zookeeper_metricsprovider_exportjvminfo | ternary('true', 'false') }}
{% endif %}

{% for key, value in (zookeeper_config_params | default({})).items() %}
{{key}}={{value}}
{% endfor %}

0 comments on commit e2ae885

Please sign in to comment.