Last active
August 29, 2015 14:08
-
-
Save john-g-g/d22ab7d06b777c3d3b2b to your computer and use it in GitHub Desktop.
Base Project Vagrantfile
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 : | |
$PROJECT_NAME='init' | |
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | |
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.require_version ">= 1.5.0" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
# All Vagrant configuration is done here. The most common configuration | |
# options are documented and commented below. For a complete reference, | |
# please see the online documentation at vagrantup.com. | |
config.vm.hostname = $PROJECT_NAME | |
# Set the version of chef to install using the vagrant-omnibus plugin | |
#config.omnibus.chef_version = :latest | |
# Every Vagrant virtual environment requires a box to build off of. | |
config.vm.box = "trusty64" | |
#config.vm.box_url = "https://cloud-images.ubuntu.com/vagrant/trusty/current/trusty-server-cloudimg-amd64-vagrant-disk1.box" | |
# save apt downloads between creations: | |
# config.vm.synced_folder \ | |
# "~/Library/Caches/ubuntu-14.04-apt-archives/", \ | |
# "/var/cache/apt/archives/", \ | |
# create: true | |
config.vm.provider :virtualbox do |vb| | |
# Use VBoxManage to customize the VM. For example to change memory: | |
vb.memory = 4096 | |
end | |
config.vm.network "forwarded_port", guest: 80, host: 8080 | |
# repo for php 5.2.17 | |
config.vm.provision "shell", inline: "sudo apt-get update" | |
config.vm.provision "shell", inline: "sudo apt-get install ruby1.9.1-dev" | |
config.vm.provision :chef_solo do |chef| | |
#chef.cookbooks_path = ["local_cookbooks", "cookbooks"] | |
# PHP 5.2.17 | |
# MySQL 5.0.96 | |
chef.node_name = $PROJECT_NAME | |
chef.json = {} | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment