Advanced Confluent Platform Configurations with Ansible Playbooks
This section provides information about various deployment configurations for Confluent Platform using Ansible.
Deploy Confluent Platform across multiple regions
To configure multi region clusters,
use the following properties in the hosts.yml
inventory file:
replica.selector.class
sets on all brokers
broker.rack
uniquely sets on each host
For example:
kafka_broker:
vars:
kafka_broker_custom_properties:
replica.selector.class: org.apache.kafka.common.replica.RackAwareReplicaSelector
hosts:
ip-192-24-10-207.us-west.compute.internal:
broker_id: 1
kafka_broker_custom_properties:
broker.rack: us-west-2a
ip-192-24-5-30.us-west.compute.internal:
broker_id: 2
kafka_broker_custom_properties:
broker.rack: us-west-2b
ip-192-24-10-0.us-west.compute.internal:
broker_id: 3
kafka_broker_custom_properties:
broker.rack: us-west-2a
You can apply the kafka_broker_custom_properties
directly within the
kafka_broker
group as well.
Connect to Confluent Cloud
You can use Ansible Playbooks for Confluent Platform to configure and deploy on-premises Confluent Platform to connect to Kafka
and Schema Registry running in Confluent Cloud.
See the sample inventory file at the following location for the required
configuration settings:
https://github.com/confluentinc/cp-ansible/blob/6.1.0-post/sample_inventories/ccloud.yml