Skip to content

Latest commit

 

History

History
67 lines (52 loc) · 2.14 KB

README.md

File metadata and controls

67 lines (52 loc) · 2.14 KB

Stories in Ready Provisioning My PC

A simple ansible script to set up my machine just the way I like it (currently base on Ubuntu 14.04).

How To Install With One Command

wget -qO- https://github.com/JBKahn/provisioning-local/raw/master/run.sh | bash

How To Install The Old Fashioned Way

  1. Install pip
sudo apt-get install python-setuptools
sudo easy_install pip
  1. Install Ubuntu packages
sudo apt-get install aptitude
sudo apt-get install git
sudo apt-get install python-dev libxml2-dev libxslt-dev
  1. Setup Git
  1. Checkout this repo and cd into the directory
git clone https://github.com/JBKahn/provisioning-local.git <dir>
cd <dir>
  1. Pip install the requirements
sudo pip install -r requirements.txt
  1. 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
  1. Provision your local machine
ansible-playbook setup.yml -i HOSTS --ask-sudo-pass --module-path ./ansible_modules --extra-vars "@config.json"

Possible Issues

  1. /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