Skip to content

Instantly share code, notes, and snippets.

@RedDevilHat
Created July 21, 2016 10:00
Show Gist options
  • Save RedDevilHat/a9eb5d7579d614fdf70d1a5449d5f549 to your computer and use it in GitHub Desktop.
Save RedDevilHat/a9eb5d7579d614fdf70d1a5449d5f549 to your computer and use it in GitHub Desktop.
# -*- mode: ruby -*-
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION = '2'
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = 'trusty64'
config.vm.box_url = "https://cloud-images.ubuntu.com/vagrant/trusty/current/trusty-server-cloudimg-amd64-vagrant-disk1.box"
#config.vm.network :public_network, ip: '192.168.223.13'
config.vm.provider 'virtualbox' do |v|
v.customize ['modifyvm', :id, '--memory', '3072']
end
config.vm.synced_folder '.', '/vagrant', :mount_options => ['dmode=777', 'fmode=777']
config.omnibus.chef_version = :latest
config.vm.provision :chef_solo do |chef|
chef.cookbooks_path = ['chef/cookbooks', 'chef/site-cookbooks']
chef.add_recipe 'vagrant'
chef.json = {
'apache' => {
'default_site_enabled' => true,
'mpm' => 'prefork',
'docroot_dir' => '/var/www/current/web',
'allow_override' => 'All',
'listen_ports' => [8080]
},
'nginx' => {
'hostname' => '192.168.223.13',
'default_root' => '/var/www/current/web',
'sendfile' => 'off'
},
'mysql' => {
'server_root_password' => ''
},
'automysqlbackup' => {
'mysql_dump_username' => 'root',
'mysql_dump_password' => ''
},
'test' => {
'dev' => true
}
}
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment