forked from punkhop/peetguercio.com
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
28 lines (22 loc) · 901 Bytes
/
Vagrantfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
Vagrant.configure("2") do |config|
config.vm.box = "vagrant-node-0.10-0.0.5"
config.vm.box_url = "https://github.com/GeoffreyPlitt/vagrant-node-0.10/releases/download/v0.0.5/vagrant-node-0.10-0.0.5.box"
config.vm.network :forwarded_port, host: 4000, guest: 4000
config.vm.provision :shell, :inline => $BOOTSTRAP_SCRIPT # see below
config.ssh.forward_agent = true
end
$BOOTSTRAP_SCRIPT = <<EOF
set -e # Stop on any error
export DEBIAN_FRONTEND=noninteractive
# Make vagrant automatically go to /vagrant when we ssh in.
echo "cd /vagrant" | sudo tee -a ~vagrant/.profile
# Install s3cmd
apt-get install -y python-pip
pip install python-dateutil
pip install https://github.com/s3tools/s3cmd/archive/v1.5.0-rc1.tar.gz
# Copy private keys
if [ -e /vagrant/.keys ]; then
cat /vagrant/.keys | sudo tee -a ~vagrant/.bashrc > /dev/null
fi
echo VAGRANT IS READY.
EOF