Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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)

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`