This is an Ansible (2.1.1) project to setup Hubot on the Amazon Linux AMI (2016.09.0) and integrate it with Slack .. In other words, it's your very own chat Bot !!
I assume:
- You have an AWS account
- You have AWS credential keys
- You have said AWS credential keys in your ~/.boto file, under a "hubot" profile
[profile hubot]
output = json
region = us-east-1
aws_access_key_id = abc123
aws_secret_access_key = 123abc
- You have Ansible and Boto installed locally
pip install ansible==2.1.1 boto
- You have created a Slack team and a custom Bot user
- Go learn about Bot users: https://api.slack.com/bot-users
- The link above links to "creating a new bot user" .. Go do it !!
- You have created your own Ansible Vault password file
- ~/.ansible_hubot_vault.txt
- You have created your own ./vars/secrets.yml file
ansible-vault create vars/secrets.yml
---
slack_hal_api_token: xyz456
- To get the audit script to work, create a new channel named "#botlog" and invite your bot to it