Skip to content

Instantly share code, notes, and snippets.

@jumski
Created July 12, 2013 14:29
Show Gist options
  • Save jumski/5984889 to your computer and use it in GitHub Desktop.
Save jumski/5984889 to your computer and use it in GitHub Desktop.
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "centos-56-32-3"
config.vm.box_url = 'http://dl.dropbox.com/u/9227672/centos-5.6-x86_64-netinstall-4.1.6.box'
# config.vm.box_url = "https://s3.amazonaws.com/itmat-public/centos-6.3-chef-10.14.2.box"
config.vbguest.auto_update = true
config.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id, "--memory", "1024"]
vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
vb.customize ['modifyvm', :id, '--cpuexecutioncap', 30]
end
config.vm.network :private_network, ip: '192.168.10.55'
config.vm.network :forwarded_port, guest: 3000, host: 3030
# config.vm.synced_folder 'app/', "/opt/app"
end
# Vagrant::Config.run do |config|
# # custom the source box image here
# config.vm.box = "centos-56-32"
# config.vm.box_url = "http://yum.mnxsolutions.com/vagrant/centos_56_32.box"
# config.vm.customize ["modifyvm", :id, "--memory", "1024"]
# config.vm.forward_port 3000, 3030
#
# # for debug enable gui
# ## config.vm.boot_mode = :gui
# # =begin
# config.vm.provision :chef_solo do |chef|
# #chef.cookbooks_path = "chef-solo/cookbooks"
# #chef.add_role "web"
# chef.add_recipe "ruby_build"
# chef.add_recipe "rbenv::vagrant"
# chef.add_recipe "rbenv::system"
# #chef.add_recipe "mysql"
# #chef.add_recipe "nginx"
# #chef.add_recipe "passenger"
# # =begin
# # 1. nginx
# # 2. setup proxy
# # 3. postgres/mongodb
# # 4a. 1 bundle install --deployment --without development test
# # 4a. 2 tar cvzf bundle#{Time.now}.tar.gz vendor/bundle vendor/cache
# # 4a. 3 scp prod
# # 4b. 1 bundle install
# # 4b. 2 rake spec
# # chef.json = {
# # 'rvm' => {
# # 'default_ruby' => 'ruby-1.9.2-p290',
# # 'gem_package' => {
# # 'rvm_string' => 'ruby-1.9.2-p290'
# # }
# # }
# # }
# end
# # =end
# end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment