LAZY-ERLANG
lazy-erlang is an ansible playbook that will help you, a lazy developer, setup up an erlang dev environment on a guest OS, e.g. a linux VM.
I won't lie, lazy-erlang is mostly for my personal use, someday I will merge this into a more elaborate Vagrant setup.
Installs:
- erlang (R15B01)
- rebar (2.0.0)
Bad Things™ lazy-erlang does to your guest OS:
- blows away your .bashrc file (ansible should be backing it up) to update your $PATH
- copies/compiles/installs erlang and rebar in ~/cellar/
Underneath the covers, lazy-erlang uses ansible for deployment, kerl for managing erlang installation.
Installation
Pre-requisites on host OS:
- bash (bootstrap.sh is a shell script)
- python
- python's virtualenv
Pre-requisites on target guest OS:
- ssh
- python (comes pre-installed on most linux installs)
- password-less sudo
Installation Instructions
bootstrap.sh installs the rest of the dependencies local to the repo itself:
git clone git://github.com/gdso/lazy-erlang.git
cd lazy-erlang
./bootstrap
HOWTO use the Playbook
-
Edit the guest-host.ini, replace the host on line 3 with your guest hostname:
guest0 ansible_ssh_host=[hostname]
-
Then setup a temporary ansible environment:
./setup-temp-ansible-env.sh
-
Then run install:
ansible-playbook install.yml
Or, if you haven't setup password-less sudo on remote host:
ansible-playbook install.yml -K