Skip to content

Commit

Permalink
adapt to aap 2.5
Browse files Browse the repository at this point in the history
  • Loading branch information
kubealex committed Oct 3, 2024
1 parent 7722d02 commit 6002a48
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 890 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
- v1.0.0 - First release
- v1.0.4 - Added modules to configure EDA Controller
- v1.0.5 - Added role to configure EDA Controller
- v1.0.7 - Move asyncio_mqtt to aiomqtt
- v1.0.7 - Move asyncio_mqtt to aiomqtt
- v1.0.10 - Adapt to AAP 2.5 - remove unused modules
113 changes: 12 additions & 101 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,18 @@ The following roles are included in the collection

- 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
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
Expand Down Expand Up @@ -63,92 +63,3 @@ A sample rulebook using _kubealex.eda.mqtt_ plugin is shown below
action:
debug:
```
## Modules
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 |
| kubealex.eda.eda_decision_environment | Configure decision_environments 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
hosts: localhost
tasks:
- name: Create EDA Activations
kubealex.eda.eda_activations:
controller_url: "https://example-controller.com"
controller_user: "admin"
controller_password: "admin123"
activations:
- name: Activation 1
project_name: Project 1
rulebook: Rulebook 1
extra_vars: {}
restart_policy: always
enabled: true
decision_env: Decision Environment 1
- name: Activation 2
project_name: Project 2
rulebook: Rulebook 2
extra_vars: {}
restart_policy: always
enabled: true
decision_env: Decision Environment 2

- name: Create EDA Decision Environments
kubealex.eda.eda_decision_environment:
controller_url: "https://example-controller.com"
controller_user: "admin"
controller_password: "admin123"
decision_envs:
- name: Decision Environment 1
image_url: "http://example.com/decision_env1"
- name: Decision Environment 2
image_url: "http://example.com/decision_env2"

- name: Create EDA Credentials
kubealex.eda.eda_credentials:
controller_url: "https://example-controller.com"
controller_user: "admin"
controller_password: "admin123"
credentials:
- name: Credential 1
description: "Credential 1 description"
username: "user1"
secret: "secret1"
credential_type: "GitHub Personal Access Token"
- name: Credential 2
description: "Credential 2 description"
username: "user2"
secret: "secret2"
credential_type: "GitLab Personal Access Token"

- name: Create EDA Projects
kubealex.eda.eda_projects:
controller_url: "https://example-controller.com"
controller_user: "admin"
controller_password: "admin123"
projects:
- project_name: Project 1
project_description: "Project 1 description"
project_git_url: "http://example.com/project1"
project_credential: "Credential 1"
- project_name: Project 2
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.9
version: 1.0.10

readme: README.md

Expand Down
5 changes: 0 additions & 5 deletions plugins/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,4 @@ In this directory, all plugins that are supported by this collection are added.
└── plugins
└── event_source
└── mqtt.py
modules
└── eda_activations.py
└── eda_credentials.py
└── eda_decision_environment.py
└── eda_projects.py
```
Loading

0 comments on commit 6002a48

Please sign in to comment.