Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/arm4b/st2mistral_and_ansible
StackStorm & Mistral Workflow demo handling Ansible playbooks execution in Parallel
https://github.com/arm4b/st2mistral_and_ansible
Last synced: about 1 month ago
JSON representation
StackStorm & Mistral Workflow demo handling Ansible playbooks execution in Parallel
- Host: GitHub
- URL: https://github.com/arm4b/st2mistral_and_ansible
- Owner: arm4b
- Created: 2015-11-15T15:55:24.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-04-03T21:10:39.000Z (almost 8 years ago)
- Last Synced: 2024-10-14T07:43:01.522Z (3 months ago)
- Homepage:
- Size: 9.77 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Mistral demo Workflow with Ansible, running on StackStorm
Example of StackStorm & Mistral Workflow running 3 separate Ansible playbooks in parallel and posting results from each execution to Slack.
> There is some way to run tasks inside Ansible playbook in parallel via [async-poll](http://docs.ansible.com/ansible/playbooks_async.html),
but it doesn't give such freedom and flexibility.
So here (in best traditions of biologists :biohazard_sign: :) we crossed two different tools (Ansible & Mistral) and got new useful features.## Installation
Install StackStorm Ansible & Slack integration packs:
```sh
st2 pack install ansible slack
```Install this pack with Demo Mistral workflow and Ansible playbooks in it:
```sh
st2 pack install https://github.com/armab/st2mistral_and_ansible
```## Configuration
1.) Adjust Ansible configuration for your remote machines:
* `/etc/ansible/ansible.cfg`
* `/etc/ansible/hosts`2.) Configure Slack
Run `st2 pack config slack` or add Slack credentials in `/opt/stackstorm/configs/slack.yaml` section: `post_message_action`## Example commands:
```sh
st2 run st2mistral_and_ansible.update_all package_managers=pip
st2 run st2mistral_and_ansible.update_all package_managers=gem,npm,pip
```## Results
### Slack Messages
![Slack messages](http://i.imgur.com/ULywhvP.png)