Jellyfish is a quick-and-dirty hack to push a GitHub post-receive webhook through to a set of Opscode Chef nodes causing them to converge.
GitHub -(webhook) -> jellyfish-server -(websocket)-> jellyfish-clients -> chef-client
- POSTing to http://jlyfsh.com/deploy generates a unique URI
- On hosts deploying your code install the jellyfish daemon
- Configure jellyfish.yml and start jellyfish-client.py so it has a persistent WebSockets connection to your unique URI
- GET or POST to http://jlyfsh.com/deploy/{id} to signal a deploy
- Generate a new identifier:
curl --data '' http://jlyfsh.com/deploy
- Point your webhook at http://jlyfsh.com/deploy/{id}
- Install/configure the Jellyfish cookbook
- Push to Converge!
- Learn how to package, install and daemonize Erlang and Python programs using native techniques
- Limit identifiers to only those generated
Please don't expect this to work well. It's practically the first Erlang program I've ever written. I'm certain it lacks good style, design and is just wrong. I'd love to hear critical feedback to become a better Erlang hacker. Pull requests welcome!
I'll run this code as a community service at http://jlyfsh.com. I'm using it for my own projects so I may make a reasonable effort to keep it healthy, but absolutely no promises. It may go down for days, randomly destroy your data or vanish forever without notice.
Sincerely,
Darrin