Skip to content

Instantly share code, notes, and snippets.

@inirudebwoy
Created February 11, 2015 12:53
Show Gist options
  • Save inirudebwoy/548ca2995bad5d2b6913 to your computer and use it in GitHub Desktop.
Save inirudebwoy/548ca2995bad5d2b6913 to your computer and use it in GitHub Desktop.
Install Ubuntu 10.04 with couchdb 1.2.1
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
config.vm.box_url = "http://files.vagrantup.com/lucid64.box"
config.vm.box = "ubuntu/lucid64"
config.vm.network "forwarded_port", guest: 5984, host: 5984
config.vm.provision "shell", inline: <<-SHELL
sudo apt-get update
sudo apt-get install -y python-software-properties curl
sudo add-apt-repository ppa:longsleep/couchdb
sudo apt-get update
sudo apt-get install -y couchdb
sudo sed -i.bak "s/;bind_address = 127.0.0.1/bind_address=0.0.0.0/g" /etc/couchdb/local.ini
sudo reboot
SHELL
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment