[DMAAP-KAFKA] Kafka Upgrade
[dmaap/kafka11aaf.git] / src / main / docker / include / etc / confluent / docker / kafka.properties.template
1 {% set excluded_props = ['KAFKA_VERSION',
2                          'KAFKA_HEAP_OPTS'
3                          'KAFKA_LOG4J_OPTS',
4                          'KAFKA_OPTS',
5                          'KAFKA_JMX_OPTS',
6                          'KAFKA_JVM_PERFORMANCE_OPTS',
7                          'KAFKA_GC_LOG_OPTS',
8                          'KAFKA_LOG4J_ROOT_LOGLEVEL',
9                          'KAFKA_LOG4J_LOGGERS',
10                          'KAFKA_TOOLS_LOG4J_LOGLEVEL',
11                          'KAFKA_ZOOKEEPER_CLIENT_CNXN_SOCKET']
12 -%}
13
14 {# properties that don't fit the standard format #}
15 {% set other_props = {
16   'KAFKA_ZOOKEEPER_CLIENT_CNXN_SOCKET' : 'zookeeper.clientCnxnSocket'
17  } -%}
18
19 {% set kafka_props = env_to_props('KAFKA_', '', exclude=excluded_props) -%}
20 {% for name, value in kafka_props.items() -%}
21 {{name}}={{value}}
22 {% endfor -%}
23
24 {% for k, property in other_props.items() -%}
25 {% if env.get(k) != None -%}
26 {{property}}={{env[k]}}
27 {% endif -%}
28 {% endfor -%}
29
30 {% set confluent_support_props = env_to_props('CONFLUENT_SUPPORT_', 'confluent.support.') -%}
31 {% for name, value in confluent_support_props.items() -%}
32 {{name}}={{value}}
33 {% endfor -%}