Skip to content

Commit

Permalink
Merge pull request #38 from anton-bystrov/master
Browse files Browse the repository at this point in the history
Added KAFKA_OPTS section in template
  • Loading branch information
sleighzy committed Jan 21, 2024
2 parents 277c334 + b1ebb8a commit b36bb21
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions defaults/main/001-kafka.yml
Original file line number Diff line number Diff line change
Expand Up @@ -191,3 +191,6 @@ kafka_consumer_bootstrap_servers: "localhost:9092"
# keystore_password: "secret"
# key_password: "secret"
# client_auth: "required"

# Here you can define custom opts e.g. settings for JMX Exporter
# kafka_opts: ""
3 changes: 3 additions & 0 deletions templates/kafka.service.j2
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ Type=simple
StandardOutput=null
Environment="KAFKA_HEAP_OPTS={{ kafka_java_heap }}"
Environment="LOG_DIR={{ kafka_log_dir }}"
{% if kafka_opts is defined %}
Environment="KAFKA_OPTS={{ kafka_opts }}"
{% endif %}
{% if kafka_extra_args is defined %}
Environment="EXTRA_ARGS={{ kafka_extra_args }}"
{% endif %}
Expand Down

0 comments on commit b36bb21

Please sign in to comment.