For each example, you will find:
- a
docker-compose.yml
file to bring up the minimum services required to use the example - a
playbook.yml
that performs some actions using the library
Make sure to cd
in the folder examples
.
- Create a virtualenv and source it
virtualen venv -p python3 && source venv/bin/activate
- Install requirements
pip install -r ../requirements.txt
- Install Ansible
pip install ansible
- Install roles
ansible-galaxy install -r requirements.yml
- Bring up the needed stack
docker-compose -f ${folder}/docker-compose.yml up -d
- Trigger the playbook
ansible-playbook ${folder}/playbook.yml -v
Create 2 different ACLs.
Create a topic.
Create a topic and update its number of partitions.
Create a topic and update its number of replica.
Create a topic and update the retention.ms
configuration.