Skip to content

Commit c401193

Browse files
authored
Merge pull request #16 from teralytics/master
Fix hard coded user/group in sysmted unit
2 parents f7c0632 + fca44b9 commit c401193

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

defaults/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ kafka_conf_dir: /etc/kafka
2424
kafka_data_dir: /var/kafka
2525
kafka_log_dir: /var/log/kafka
2626

27-
kafka_group: kafka
2827
kafka_user: kafka
28+
kafka_group: kafka
2929

3030
kafka_max_logfile_size: 50MB
3131
kafka_max_logbackup_idx: 7

templates/etc/systemd/system/kafka.service.j2

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ After=zookeeper.service
44

55
[Service]
66
Type=simple
7-
User=kafka
8-
Group=kafka
7+
User={{ kafka_user }}
8+
Group={{ kafka_group }}
99
LimitNOFILE={{ nofiles_limit }}
1010
Restart=on-failure
1111
EnvironmentFile=/etc/default/kafka

0 commit comments

Comments
 (0)