Created
September 23, 2014 21:01
-
-
Save macedo/e93e22ab0c7cdd4a5234 to your computer and use it in GitHub Desktop.
Vagrant file to setup a debian-wheezy vm configured to run simplestack (https://github.com/locaweb/simplestack)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$script = <<SCRIPT | |
function log_and_exec { | |
callback=${1}; | |
shift 1; | |
echo "[EXEC] $callback $@"; | |
"$callback" "$@"; | |
} | |
date > /etc/vagrant_provisioned_at | |
log_and_exec sudo apt-get update | |
log_and_exec sudo apt-get -y remove --purge libssl1.0.0 | |
log_and_exec sudo apt-get -y install libssl1.0.0 openssh-server openssh-client \ | |
pkg-config libvirt-bin libvirt-dev python \ | |
python-dev python-pip python-virtualenv \ | |
vim ntp | |
SCRIPT | |
VAGRANTFILE_API_VERSION = '2' | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
config.vm.box = 'https://dl.dropboxusercontent.com/s/xymcvez85i29lym/vagrant-debian-wheezy64.box' | |
config.vm.network 'forwarded_port', guest: 8081, host: 8081 | |
config.vm.network 'private_network', ip: '10.20.30.40' | |
config.vm.provision :shell, inline: $script | |
config.vm.synced_folder '.', '/simplestack', type: 'nfs' | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment