Skip to content

Instantly share code, notes, and snippets.

@murachi1208
Created May 24, 2014 00:58
Show Gist options
  • Save murachi1208/3c573d23dca68dcbc32e to your computer and use it in GitHub Desktop.
Save murachi1208/3c573d23dca68dcbc32e to your computer and use it in GitHub Desktop.
vagrant share
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "centos65"
config.vm.box_url = "https://github.com/2creatives/vagrant-centos/releases/download/v6.5.3/centos65-x86_64-20140116.box"
config.vm.network :forwarded_port, guest: 80, host: 8080
config.vm.provision "shell", inline: <<-EOT
yum -y update
yum install -y httpd
rm -rf /var/www
ln -fs /vagrant /var/www
mkdir /var/www/html
echo "<h1>Hello, Vagrant Cloud.</h1>" > /vagrant/html/index.html
service httpd start
EOT
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment