To run:
$ansible-playbook install-kafka.yaml
To adjust the server.properties settings, edit the ./vars/settings.yaml file. properties follow the pattern: the prefix "kafka_" + original property with the character "." (dot) edited to "_" (underline).
Example:
server.properties
auto.create.topics.enable
settings.yaml
kafka_auto_create_topics_enable
There are 2 gropus of properties for server.properties in the file.
-
KAFKA server.properties [1]: Common and default properties of server.properties original.
-
KAFKA server.properties [2]: Extra settings for server.prperties. The relation of all properties can be visualized in the kafka documentation. In this 2nd group the properties are in a list called kafka_properties with 2 attributes:
- key: The name of property
- value: The value of property. If the value is none the property is not included in server.properties.
- Red Hat Enterprise Linux Server release 7.8 (Maipo)