Created
May 24, 2014 00:58
-
-
Save murachi1208/3c573d23dca68dcbc32e to your computer and use it in GitHub Desktop.
vagrant share
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
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