Skip to content

Commit

Permalink
Merge pull request #1 from teralytics/hardcoded_logs
Browse files Browse the repository at this point in the history
Fixed hardcoded kafka logs, user, group
  • Loading branch information
Kunal Chowdhury authored Jan 3, 2017
2 parents a7ea90e + 7a077e9 commit 142e8c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/kafka-cfg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
- kafka-install

- name: "Link alternate logs directory and touch output files"
shell: "( test ! -e /usr/local/kafka/logs || rm -rf /usr/local/kafka/logs ) && ln -s /var/log/kafka /usr/local/kafka/logs && touch /var/log/kafka/state-change.log /var/log/kafka/kafkaServer.out && chown kafka:kafka /var/log/kafka/state-change.log /var/log/kafka/kafkaServer.out"
shell: "( test ! -e /usr/local/kafka/logs || rm -rf /usr/local/kafka/logs ) && ln -s {{ kafka_log_dir }} /usr/local/kafka/logs && touch {{ kafka_log_dir }}/state-change.log {{ kafka_log_dir }}/kafkaServer.out && chown {{ kafka_user }}:{{ kafka_group }} {{ kafka_log_dir }}/state-change.log {{ kafka_log_dir }}/kafkaServer.out"
changed_when: False
sudo: yes
tags: kafka-cfg
Expand Down

0 comments on commit 142e8c9

Please sign in to comment.