forked from vyos-legacy/build-ami
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Vagrantfile
30 lines (19 loc) · 945 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
29
# vi: set ft=ruby
$script = <<SCRIPT
#!/usr/bin/env bash
apt-get update
apt-get install -y python-dev gcc python-pip
apt-get install -y vim git ack-grep
pip install virtualenv
./bootstrap-virtualenv
echo "source env/bin/activate" > ~vagrant/.bash_profile
echo "cd /vagrant" >> ~vagrant/.bash_profile
SCRIPT
Vagrant.configure("2") do |config|
config.vm.box = "puppetlabs-debian-607-x64-vbox4210-nocm"
config.vm.box_url = "http://puppet-vagrant-boxes.puppetlabs.com/debian-607-x64-vbox4210-nocm.box"
config.vm.provision :file, source: '~/.gitconfig', destination: '/home/vagrant/.gitconfig' if File.exist?(ENV['HOME'] + '/.gitconfig')
config.vm.provision :file, source: '~/.vimrc', destination: '/home/vagrant/.vimrc' if File.exist?(ENV['HOME'] + '/.vimrc')
config.vm.provision :file, source: '~/.vim', destination: '/home/vagrant/.vim' if File.exist?(ENV['HOME'] + '/.vim')
config.vm.provision "shell", inline: $script
end