Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zjleblanc/ansible-event-driven
Event Driven Ansible (EDA) example workflows (sources, rulebooks, playbooks)
https://github.com/zjleblanc/ansible-event-driven
Last synced: 12 days ago
JSON representation
Event Driven Ansible (EDA) example workflows (sources, rulebooks, playbooks)
- Host: GitHub
- URL: https://github.com/zjleblanc/ansible-event-driven
- Owner: zjleblanc
- License: gpl-3.0
- Created: 2023-06-05T18:54:59.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-06-09T15:26:52.000Z (over 1 year ago)
- Last Synced: 2024-04-23T11:16:05.151Z (7 months ago)
- Language: Python
- Size: 49.4 MB
- Stars: 1
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ansible-event-driven
Event Driven Ansible (EDA) example workflows (sources, rulebooks, playbooks)
## scada-demo
![Windmill Demo Architecture Diagram](./.attachments/windmill_demo.png)
### Prerequisites
- Install Kafka using the [quickstart docs](https://kafka.apache.org/quickstart)
- Unzip the [kaggle dataset](./datasets/wind_turbine.zip) to `/datasets/raw/wind_turbine`
- Create an inventory with your grafana information
```yaml
all:
children:
ungrouped:
hosts:
localhost:
ansible_connection: local
grafana_admin_api_key:
grafana_eda_dashboard_uid:
```### Initialize Kafka Environment
1. Start Zookeeper server
`bin/zookeeper-server-start.sh config/zookeeper.properties`
1. Start Kafka Broker
`bin/kafka-server-start.sh config/server.properties`
1. Create topic for demo
`bin/kafka-topics.sh --create --topic scada-data --bootstrap-server localhost:9092`
1. Start CLI consumer for inspection (OPTIONAL)
`bin/kafka-console-consumer.sh --topic scada-data --bootstrap-server localhost:9092`### Start Event-Driven Ansible
`ansible-rulebook -r scada_rulebook.yml -i inventory.yml -v`