Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
Signed-off-by: Alina Buzachis <[email protected]>
  • Loading branch information
alinabuzachis committed Aug 15, 2024
1 parent 86cb09c commit c5efe66
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 8 deletions.
4 changes: 4 additions & 0 deletions .config/dictionary.txt
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,7 @@ auths
Passw
AUTHS
EDAHTTP
Alina
Buzachis
alinabuzachis
testuser
4 changes: 4 additions & 0 deletions meta/runtime.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,7 @@
# https://access.redhat.com/support/policy/updates/ansible-automation-platform
# https://docs.ansible.com/ansible/latest/reference_appendices/release_and_maintenance.html#ansible-core-support-matrix
requires_ansible: ">=2.15.0" # AAP 2.4 or newer
action_groups:
eda:
- activation
- activation_info
8 changes: 4 additions & 4 deletions plugins/modules/activation.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
- "Alina Buzachis (@alinabuzachis)"
short_description: Manage rulebook activations in the EDA Controller
description:
- This module allows the user to create, restart or delete activations in the EDA Controller.
- This module allows the user to create or delete activations in the EDA Controller.
options:
name:
description:
Expand Down Expand Up @@ -120,9 +120,9 @@
ansible.eda.activation:
name: "Example Activation"
description: "Example Activation description"
project: "Example Project"
rulebook: "hello_controller.yml"
decision_environment: "Default Decision Environment"
project_name: "Example Project"
rulebook_name: "hello_controller.yml"
decision_environment_name: "Default Decision Environment"
enabled: False
awx_token_id: 1
Expand Down
37 changes: 33 additions & 4 deletions plugins/modules/activation_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,22 +30,51 @@


EXAMPLES = """
- name: Get information about an activation
- name: Get information about a rulebook activation
ansible.eda.activation_info:
name: "Test"
- name: List all activations
- name: List all rulebook activations
ansible.eda.activation_info:
"""


RETURN = """
activations:
description: Information about activations.
description: Information about rulebook activations.
returned: always
type: list
elements: dict
sample: []
sample: [
{
"id": 1,
"name": "Test activation",
"description": "A test activation",
"is_enabled": true,
"status": "running",
"extra_var": "{\"environment\": \"production\"}",
"decision_environment_id": 1,
"project_id": 2,
"rulebook_id": 1,
"organization_id": 1,
"restart_policy": "on-failure",
"restart_count": 2,
"rulebook_name": "Test rulebook",
"current_job_id": "2",
"rules_count": 2,
"rules_fired_count": 2,
"created_at": "2024-08-10T14:22:30.123Z",
"modified_at": "2024-08-15T11:45:00.987Z",
"status_message": "Activation is running successfully.",
"awx_token_id": 1,
"event_streams": [],
"log_level": "info",
"eda_credentials": [],
"k8s_service_name": "",
"webhooks": [],
"swap_single_source": false
}
]
"""


Expand Down

0 comments on commit c5efe66

Please sign in to comment.