Salt formula to run NewsBotIRC on a Docker container
- Salt
- Docker
- Docker client in Python
- Git client
- Copy the contents of this repo to /srv/salt
- Move /srv/salt/pillar.example to /srv/pillar/newsbot.sls
- Edit values in /srv/pillar/newsbot.sls
- Add the pillar file to the top.sls file in /srv/pillar/top.sls. Example of /srv/pillar/top.sls:
base:
'your_target':
- newsbot
- Refresh the pillar with
salt 'your_target' saltutil.pillar_refresh
- Run the state with
salt 'your_target' state.sls newsbot
Note: replace yourtarget with the minion ID where the bot will run.