Created
February 14, 2015 06:10
-
-
Save Dirrk/803cc7578b2ec95d88f4 to your computer and use it in GitHub Desktop.
vagrant-web-dev
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
$home_env = true | |
Vagrant.configure(2) do |config| | |
config.vm.define "web" do |web| | |
web.vm.box = "centos-nginx-nodejs" | |
web.vm.box_check_update = false | |
if $home_env | |
web.vm.network "public_network", ip: "192.168.1.80", bridge: 'Marvell Yukon 88E8056 PCI-E Gigabit Ethernet Controller #2' | |
else | |
web.vm.network "forwarded_port", guest: 80, host: 8080 | |
end | |
web.vm.provider "virtualbox" do |vb| | |
vb.gui = false | |
vb.memory = "1024" | |
end | |
#web.vm.provision "shell", inline: <<-SHELL | |
# rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm | |
# rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm | |
# mkdir -p /etc/yum.repos.d/ | |
# printf "[nginx]\nname=nginx repo\nbaseurl=site.com\ngpgcheck=0\nenabled=1" > nginx.repo | |
# sudo yum -y install nginx | |
#SHELL | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment