A simple ansible script to set up my machine just the way I like it (currently base on Ubuntu 14.04).
wget -qO- https://github.com/JBKahn/provisioning-local/raw/master/run.sh | bash
- Install pip
sudo apt-get install python-setuptools
sudo easy_install pip
- Install Ubuntu packages
sudo apt-get install aptitude
sudo apt-get install git
sudo apt-get install python-dev libxml2-dev libxslt-dev
- Setup Git
- Checkout this repo and cd into the directory
git clone https://github.com/JBKahn/provisioning-local.git <dir>
cd <dir>
- Pip install the requirements
sudo pip install -r requirements.txt
- Fill in the variables in the variables file
variable | Description |
---|---|
sager_laptop | boolean to fix keyboard colors and backlight on ubuntu for sager laptops |
vagrant_url | URL to vagrant .deb file you wish to install |
virtualbox_url | URL to virtual_box .deb file you wish to install |
github_username | github username |
- Provision your local machine
ansible-playbook setup.yml -i HOSTS --ask-sudo-pass --module-path ./ansible_modules --extra-vars "@config.json"
- /usr/bin/ohai does not exist (Haven't hit since early development)
The fix was to remove old version of ruby, use rvm and then gem install ohai
http://stackoverflow.com/questions/4464985/rails-3-ruby-1-9-2-does-it-need-usr-bin-ruby1-8 https://www.digitalocean.com/community/tutorials/how-to-install-ruby-on-rails-on-ubuntu-12-04-lts-precise-pangolin-with-rvm https://wiki.opscode.com/display/chef/Ohai+Installation+and+Use