Categories
centos ChatOps

Installing Hubot on CentOS

Provision a Centos 7 server yum update You will see your node and npm versions are old: [root@st2 ~]# npm -v 3.10.10 [root@st2 ~]# node -v v6.16.0 Use nodesource curl -sL https://rpm.nodesource.com/setup_10.x | bash – sudo yum install gcc-c++ make sudo yum install -y nodejs The node and npm versions are now updated: [root@st2 ~]# […]

Categories
ansible auto-remediation stackstorm

Add a simple custom action and action alias to stackstorm

In this post I will demonstrate adding a ping action to stackstorm. Then make that action available from chatops (slack) using an action alias. The Scenario On a team of network engineers often certain ip addresses need to be checked if they are accessible. This is done using the ping command. If an engineers would […]

Categories
ChatOps DevOps

Using Telegram for ChatOps

I’ve been using telegram for some chat ops related activities and started integrating them with things like hubot and StackStorm ChatOps to test it out. I’ve picked up certain things that make things difficult with telegram: Showing html raw and not as a string Showing graphs and charts The formatting is not different when coming […]

Categories
auto-remediation stackstorm

Configure Kafka and Stackstorm config

So you have installed stackstorm and the kafka pack, but now we need to configure the pack to consume and produce messages on kafka. The first thing that you should check out is the stackstorm documentation on how packs are configured. After you have read that you will know that in the pack’s repo there […]

Categories
ansible DevOps

Deploying Stackstorm to a server with Ansible

The information about deploying stackstorm to a server with ansible is in the stackstorm docs. Importantly the galaxy role can’t really be used like a normal ansible-galaxy role. You have to clone the repo: git clone https://github.com/StackStorm/ansible-st2 cd ansible-st2 Then update the inventory, for example in inventory: st2 ansible_host=10.200.1.76 ansible_user=cent ansible_sudo_pass=pass Run the playbook: ansible-playbook […]