Skip to content

Commit

Permalink
Added role to collection
Browse files Browse the repository at this point in the history
  • Loading branch information
kubealex committed Aug 16, 2023
1 parent dd42658 commit e3162b0
Show file tree
Hide file tree
Showing 5 changed files with 56 additions and 15 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/galaxy_publish.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@

name: Publish on Galaxy
on:
push:
tags:
- '*'
- "*"

jobs:
galaxy-publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
- name: Ansible Publish
uses: ansible/[email protected]
with:
api_key: ${{ secrets.GALAXY_API_KEY }}
api_key: ${{ secrets.GALAXY_API_KEY }}
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "roles/role_eda_controller_setup"]
path = roles/role_eda_controller_setup
url = [email protected]:kubealex/role_eda_controller_setup.git
58 changes: 47 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,51 @@

This collection was born with the idea to group some plugins and resources that can be helpful in extending the Event Driven Automation collection.

## Roles

The following roles are included in the collection

| Name | Description |
| -------------------------------------- | -------------------------------------------- |
| kubealex.eda.role_eda_controller_setup | Configure Projects, DE, Rulebook Activations |

### Usage

```yaml
---
- name: Sample EDA Controller Setup
hosts: localhost
gather_facts: false

roles:

- role: role_eda_controller_setup
vars:
eda_controller_url: "https://your-eda-controller-api.com"
eda_controller_user: "your_eda_user"
eda_controller_password: "your_eda_password"
eda_projects: - name: "EDA Demo Project"
git_url: "https://github.com/kubealex/event-driven-automation"
description: "Demo project to show EDA in action"
eda_decision_env: - name: "kubealex-eda"
image_url: "quay.io/kubealex/eda-decision-env"
eda_activations: - name: "eda-alertmanager"
rulebook: "eda-rulebook-alertmanager.yml"
project_name: EDA Demo Project
decision_env: Automation Hub Default Decision Environment
```
## Plugins
The following plugins are included in the collection
| Name | Description |
|-|-|
| Name | Description |
| ----------------- | ---------------------------------- |
| kubealex.eda.mqtt | Configure MQTT listener for events |
## Usage
### Usage
A sample rulebook using *kubealex.eda.mqtt* plugin is shown below
A sample rulebook using _kubealex.eda.mqtt_ plugin is shown below
```yaml
---
Expand All @@ -35,18 +68,17 @@ A sample rulebook using *kubealex.eda.mqtt* plugin is shown below
The following modules are included in the collection
| Name | Description |
|-|-|
| kubealex.eda.eda_activations | Configure activations in EDA Controller |
| kubealex.eda.eda_credentials | Configure credentials in EDA Controller |
| Name | Description |
| ------------------------------------- | ------------------------------------------------- |
| kubealex.eda.eda_activations | Configure activations in EDA Controller |
| kubealex.eda.eda_credentials | Configure credentials in EDA Controller |
| kubealex.eda.eda_decision_environment | Configure decision_environments in EDA Controller |
| kubealex.eda.eda_projects | Configure projects in EDA Controller |
| kubealex.eda.eda_projects | Configure projects in EDA Controller |
### Usage
A sample playbook to create items using the modules is shown below:
```yaml
---
- name: Example Playbook
Expand Down Expand Up @@ -115,4 +147,8 @@ A sample playbook to create items using the modules is shown below:
project_description: "Project 2 description"
project_git_url: "http://example.com/project2"
project_credential: "Credential 2"
```
```
```

```
2 changes: 1 addition & 1 deletion galaxy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ namespace: kubealex

name: eda

version: 1.0.4
version: 1.0.5

readme: README.md

Expand Down
1 change: 1 addition & 0 deletions roles/role_eda_controller_setup

0 comments on commit e3162b0

Please sign in to comment.