New In StackStorm: Ansible Integration

June 5, 2015

Contribution by Integration Developer Eugen C.

We’re always happy when the number of integrations to StackStorm increases, creating bridges between more DevOps tools and extending possible use cases.  Our IFTTT for Ops approach – or Event Driven Automation – becomes more valuable the more ways to control and listen to your environment come pre-integrated, “batteries included.”

Recently, an Ansible integration pack was added to StackStorm Exchange, giving users the possibility to use Ansible as an underlying remote change and configuration management tool in conjunction with StackStorm.

There are approaches StackStorm and Ansible have in common:

  • Declarative way of doing things
  • Python, YAML files, Jinja templating engine
  • Easiness, low entry point for non-complex solutions
  • Flexibility when you need more

So if you like Ansible and find yourself in need of overall event driven automation to wire the environment together, you’ll definitely like StackStorm too!

Vagrant Demo

vagrant

For those who are interested in seeing some real commands, here is a Vagrant demo with 3 VMs that shows st2 Ansible pack work on simple examples: https://github.com/StackStorm/st2-ansible-vagrant

It will get you up and running with master VM with all St2 components, as well as Ansible pack. Additionally, it takes up two clean Ubuntu VMs: node1, node2 and performs Ansible commands against them:

To get started:

git clone https://github.com/StackStorm/st2-ansible-vagrant.git
cd st2-ansible-vagrant
vagrant up

687474703a2f2f692e696d6775722e636f6d2f7a63347376674a2e676966

More On StackStorm With Ansible

In the next week or so, we’ll show how to play with ChatOps – how to run Ansible from Slack chat via StackStorm ChatOps so these commands are in the context both of your overall automation and in the context of your users who are living in Slack presumably.  We will also introduce you to more complex real world workflows. Stay updated by subscribing to the StackStorm blog or newsletter.  You can also follow us on twitter (@Stack_Storm) or see us at #stackstorm on Freenode.