Skip to content

devopsct/hubot-bot

Repository files navigation

DevOps CT Hubot

This is the Hubot that lives in our Slack team.

Configuration Management

Secrets are managed through Torus CLI.

  1. Signup for Torus if you haven't already
  2. Setup and Org and Project for Torus:
  • torus orgs create <name>
  • torus projects create --org <org> <name>
  1. Link to your project: torus link
  2. Create an environment for Heroku: torus envs create heroku
  3. Create a Heroku machine role: torus machines roles create heroku
  4. Give your machine role access: torus allow rl /<org>/<project>/heroku/default/** heroku
  5. Create a Heroku machine for your deployment: torus machines create heroku-instance -r heroku
  6. Set the following env vars in Heroku using output from step 7:
  • TORUS_TOKEN_ID: Machine Token ID
  • TORUS_TOKEN_SECRET: Machine Token Secret
  1. Add the following secrets to Torus: torus set -e heroku <ENV var> <value>
  • HUBOT_SLACK_TOKEN - xoxb-YOUR-TOKEN-HERE
  • HUBOT_HEROKU_KEEPALIVE_URL - Your Heroku URL (heroku apps:info -s | grep web.url | cut -d= -f2)