This is an automated email from the ASF dual-hosted git repository.

machristie pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/airavata.git

commit 9991e44be2d5328a1ecc3475693c3b82fbe8cd7a
Author: Marcus Christie <machris...@apache.org>
AuthorDate: Fri Feb 9 15:58:00 2018 -0500

    AIRAVATA-2672 Setting Zookeeper log directory
---
 dev-tools/ansible/roles/zookeeper/tasks/main.yml        | 6 ++++++
 dev-tools/ansible/roles/zookeeper/templates/java.env.j2 | 1 +
 2 files changed, 7 insertions(+)

diff --git a/dev-tools/ansible/roles/zookeeper/tasks/main.yml 
b/dev-tools/ansible/roles/zookeeper/tasks/main.yml
index 08d68b8..2d2c303 100644
--- a/dev-tools/ansible/roles/zookeeper/tasks/main.yml
+++ b/dev-tools/ansible/roles/zookeeper/tasks/main.yml
@@ -39,6 +39,12 @@
     - restart zookeeper
   become: yes
 
+- name: Copy java.env file
+  template: src=java.env.j2 dest="{{ zookeeper_dir }}/conf/java.env" owner="{{ 
user }}" group="{{ group }}" mode="u=rw,g=r,o=r"
+  notify:
+    - restart zookeeper
+  become: yes
+
 - name: Check if systemd exists
   stat: path=/usr/lib/systemd/system/
   register: systemd_check
diff --git a/dev-tools/ansible/roles/zookeeper/templates/java.env.j2 
b/dev-tools/ansible/roles/zookeeper/templates/java.env.j2
new file mode 100644
index 0000000..356192c
--- /dev/null
+++ b/dev-tools/ansible/roles/zookeeper/templates/java.env.j2
@@ -0,0 +1 @@
+export ZOO_LOG_DIR={{ zookeeper_dir }}/logs
\ No newline at end of file

-- 
To stop receiving notification emails like this one, please contact
machris...@apache.org.

Reply via email to