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

Fix mode arguments to be octal not decimal numbers #29

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
12 changes: 6 additions & 6 deletions tasks/configure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@
when: init.stdout != 'systemd'

- name: create upstart config
template: dest={{kafka_upstart_conf}} owner=root group=root mode=644 src=kafka.conf.j2
template: dest={{kafka_upstart_conf}} owner=root group=root mode=0644 src=kafka.conf.j2
notify:
- restart kafka
when: not use_systemd

- name: create systemd config
template: dest={{kafka_systemd_service}} owner=root group=root mode=644 src=kafka.service.j2
template: dest={{kafka_systemd_service}} owner=root group=root mode=0644 src=kafka.service.j2
notify:
- restart kafka
when: use_systemd
Expand All @@ -41,26 +41,26 @@
when: use_systemd

- name: Create data_dir
file: path={{kafka_data_dir}} state=directory owner={{kafka_user}} group={{kafka_group}} mode=755
file: path={{kafka_data_dir}} state=directory owner={{kafka_user}} group={{kafka_group}} mode=0755

- name: Remove lost+found in the datadir
file: path="{{kafka_data_dir}}/lost+found" state=absent

- name: Create log_dir
file: path={{kafka_log_dir}} state=directory owner={{kafka_user}} group={{kafka_group}} mode=755
file: path={{kafka_log_dir}} state=directory owner={{kafka_user}} group={{kafka_group}} mode=0755

- name: link conf_dir to /opt/kafka/config
file: path={{kafka_conf_dir}} state=link src=/opt/kafka/config

# Setup log4j.properties
- name: create log4j.properties
template: dest="{{kafka_conf_dir}}/log4j.properties" owner={{kafka_user}} group={{kafka_group}} mode=644 src=log4j.properties.j2
template: dest="{{kafka_conf_dir}}/log4j.properties" owner={{kafka_user}} group={{kafka_group}} mode=0644 src=log4j.properties.j2
notify:
- restart kafka

# Setup server.properties
- name: create server.properties
template: dest="{{kafka_conf_dir}}/server.properties" owner={{kafka_user}} group={{kafka_group}} mode=640 src=server.properties.j2
template: dest="{{kafka_conf_dir}}/server.properties" owner={{kafka_user}} group={{kafka_group}} mode=0640 src=server.properties.j2
notify:
- restart kafka

Expand Down