Table of Contents

Chatops (Operations automation with a bot)

About

Chatops:

The bot is the primary control for the whole infrastructure.

The chat becomes a console

By placing tools directly in the middle of the conversation, everyone is pairing all of the time. Teaching by making things visible.

Chat

Bot

Hubot

Ryan wrote Hubot at Github.

rolling a new version

git checkout -b git-gh13
# bump version number
git commit -am 'Bump git version'
git push origin git-gh13
# create pull request

Change as passed CI (ie Build was succesful)

hubot deploy puppet to production
hubot puppet noop git-gh13 fs1 
hubot puppet force git-gh13 fs1
hubot graph me -1h @collectd.load(fs1)
#merge pull request
ci runs
# Build 1087 (eragaf66&&) of puppet/master was successful (399s)
auto deploy
# Puppet shipped it on a interval but you can push it 
hubot puppet force production fs
hubot graph me -1h @collectd.load(fs*)
hubot log me hooks github/github

Others

hubot ci status github/smoke-perf
hubot deploy github/smoke-perf to prod/fe1
hubot log me smoke fe1

Nagios

hubot nagios check fs3b/syslog
hubot nagios status fs3b/syslog
hubot nagios downtime fs3b/syslog 90
hubot nagios mute fs3b/syslog
hubot nagios unmute fs3b/syslog

Example

https://response.pagerduty.com/resources/chatops/

Documentation / Reference