Created
June 10, 2021 12:32
-
-
Save prestonmcgowan/92ce6505c6a7f26c616c1fd878de10a1 to your computer and use it in GitHub Desktop.
Using the cp-ansible inventory file, shutdown Confluent Services in order
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "Shutting down control_center" | |
ansible all -i $1 --limit control_center -m service -a "name=confluent-control-center state=stopped" | |
sleep 60 | |
echo "Shutting down ksql" | |
ansible all -i $1 --limit ksql -m service -a "name=confluent-ksql state=stopped" | |
sleep 60 | |
echo "Shutting down schema_registry" | |
ansible all -i $1 --limit schema_registry -m service -a "name=confluent-schema-registry state=stopped" | |
sleep 60 | |
echo "Shutting down kafka_rest" | |
ansible all -i $1 --limit kafka_rest -m service -a "name=confluent-kafka-rest state=stopped" | |
sleep 60 | |
echo "Shutting down kafka_connect" | |
ansible all -i $1 --limit kafka_connect -m service -a "name=confluent-kafka-connect state=stopped" | |
sleep 60 | |
echo "Shutting down kafka_broker" | |
ansible all -i $1 --limit kafka_broker -m service -a "name=confluent-server state=stopped" | |
sleep 60 | |
echo "Shutting down zookeeper" | |
ansible all -i $1 --limit zookeeper -m service -a "name=confluent-zookeeper state=stopped" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment