Created
March 23, 2014 01:29
-
-
Save dz1984/9717187 to your computer and use it in GitHub Desktop.
My default vagrant setting.
This file contains 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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
config.vm.box = "precise64" | |
config.vm.box_url = "http://files.vagrantup.com/precise64.box" | |
config.vm.network :forwarded_port, guest: 80, host: 8080 | |
config.vm.network :forwarded_port, guest: 8000, host: 8100 | |
config.vm.network :private_network, ip: "192.168.66.66" | |
config.vm.provider :virtualbox do |vb| | |
vb.name = "DZ1984" | |
vb.customize ["modifyvm", :id, "--memory", "2048"] | |
vb.customize ["modifyvm", :id, "--ostype", "Ubuntu_64"] | |
end | |
config.vm.provision "shell", inline: <<-SCRIPT | |
apt-get update | |
apt-get install python-software-properties -y --force-yes | |
apt-get install screen vim curl git php5 -y --force-yes | |
debconf-set-selections <<< 'mysql-server-5.5 mysql-server/root_password password pa$$' | |
debconf-set-selections <<< 'mysql-server-5.5 mysql-server/root_password_again password pa$$' | |
apt-get install mysql-server -y --force-yes | |
SCRIPT | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment