Skip to content

Commit d7df359

Browse files
chore: extend eda_init playbook tool (#1311)
Add to eda_init.yml playbook tool the capability to also create sample activations, disabled by default. Useful for testing and demos. Signed-off-by: Alex <[email protected]>
1 parent e535a3b commit d7df359

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

tools/ansible/eda_init.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
controller_password: testpass
1414
organization_name: Default
1515
validate_certs: no
16+
create_activations: False
17+
number_of_activations: 1
1618
module_defaults:
1719
group/ansible.eda.eda:
1820
controller_host: "{{ controller_host }}"
@@ -59,5 +61,15 @@
5961
debug:
6062
msg: "Basic Event Stream URL: {{ event_stream_data.event_streams[0].url }}"
6163

62-
64+
- name: Create activations async
65+
when: create_activations
66+
loop: "{{ range(1, number_of_activations + 1) | list }}"
67+
async: 10
68+
poll: 0
69+
ansible.eda.rulebook_activation:
70+
organization_name: "{{ organization_name }}"
71+
decision_environment_name: "Upstream decision environment"
72+
project_name: "Eda sample project"
73+
rulebook_name: range_long_running.yml
74+
name: "Long running test activation {{ item }}"
6375

0 commit comments

Comments
 (0)