forked from kpx-dev/ansible-zookeeper
-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Configurable zookeeper environment vars (#39)
* configurable zookeeper environment vars (useful p.eg to configure logging to file) * do not write the (empty) zookeeper-env.sh file if the zookeeper_env dict is empty * extract new zookeeper-env feature into common include
- Loading branch information
1 parent
6a9b545
commit a24b32c
Showing
5 changed files
with
18 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
- name: Configure zookeeper-env.sh | ||
template: src=zookeeper-env.sh.j2 dest={{ zookeeper_dir }}/conf/zookeeper-env.sh owner=zookeeper group=zookeeper | ||
tags: deploy | ||
notify: | ||
- Restart zookeeper | ||
when: zookeeper_env is defined and zookeeper_env|length > 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,3 +8,5 @@ | |
|
||
- include: RedHat.yml | ||
when: ansible_os_family == 'RedHat' | ||
|
||
- include: common-config.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{% if zookeeper_env is defined %} | ||
{% for key, value in zookeeper_env.items() | sort %} | ||
{{key}}={{value}} | ||
{% endfor %} | ||
{% endif %} |