Last active
August 29, 2015 14:14
-
-
Save orius123/e4248cf5d28ceaedbeb5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
operation: | |
name: print | |
inputs: | |
- host | |
- port | |
action: | |
python_script: | | |
... | |
outputs: | |
- op_result | |
- status_code | |
results: | |
GOOD: host == 2 | |
BAD: host == 3 | |
SUCCESS | |
----- | |
flow: | |
name: bopho | |
inputs: | |
- hosts: [1,2,3] | |
- default_port: "'8080'" | |
workflow: | |
... | |
------------- | |
print_hosts: | |
loop: | |
for: host in hosts | |
delimiter: "," | |
do: | |
ops.print: | |
- host | |
- default_port | |
publish: | |
- agg_result: agg_result + op_result | |
- agg_status: agg_status && (status_code == 1) | |
break: status_code == o | |
navigate: | |
SUCCESS: the_next_step | |
BREAK: calculate_error_step | |
--------------- | |
print_hosts: | |
loop: | |
for: host in hosts | |
#delimiter: "," | |
#on_end: task3 | |
do: | |
ops.print: | |
- host | |
- port: default_port | |
publish: | |
- agg_result: agg_result + op_result | |
- agg_status: agg_status && (status_code == 1) | |
navigate: | |
GOOD: task4 | |
task2: | |
......... | |
task3: | |
......... | |
task4: | |
------------ | |
# simple example | |
flow: | |
name: bopho | |
inputs: | |
- hosts: "'1,2,3'" | |
- default_port: "'8080'" | |
workflow: | |
print_hosts: | |
loop: | |
for: host in hosts | |
do: | |
ops.print: | |
- host | |
- port: default_port | |
task2: | |
......... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@avimora @meshipeer @meirwah
have a look