forked from envylabs/NerdFactory
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Vagrantfile
88 lines (83 loc) · 2.84 KB
/
Vagrantfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
Vagrant::Config.run do |config|
# config.vm.box = "millisami-10-04-server-amd64"
config.vm.box = "millisami-11-04-server-amd64"
config.vm.network "33.33.33.10"
# config.vm.host_name = "worker1.server"
config.vm.customize do |vm|
vm.name = "NerdFactory vm"
vm.memory_size = 256
end
# config.vm.forward_port "http", 80, 8080
config.ssh.max_tries = 50
config.ssh.timeout = 300
# Share an additional folder to the guest VM. The first argument is
# an identifier, the second is the path on the guest to mount the
# folder, and the third is the path on the host to the actual folder.
# config.vm.share_folder "v-data", "/vagrant_data", "../data"
# config.vm.provision :chef_solo do |chef|
# # chef.recipe_url = "http://cloud.github.com/downloads/millisami/chef_repo/cookbooks.tar.gz"
# # chef.cookbooks_path = [:vm, "cookbooks"]
# chef.cookbooks_path = ["~/chef-repo/cookbooks"]
# # chef.roles_path = 'chef/roles'
# # chef.add_role "nerd_factory"
# chef.add_recipe "base"
# chef.add_recipe "rvm::install"
# chef.add_recipe "rvm::ruby_192"
#
# chef.add_recipe "mysql::client"
# chef.add_recipe "mysql::server"
#
# # chef.add_recipe "redis2::default"
# # chef.add_recipe "redis2::default_instance"
#
# chef.add_recipe "app"
# chef.add_recipe "app::deploy"
#
# chef.json = {
# :base => {
# :system_packages => ["tree", "htop", "vim-nox"]
# },
# :bluepill => { :bin => "/usr/local/rvm/gems/ruby-1.9.2-p290/bin/bluepill" },
# :app => {
# :repository => "git://github.com/millisami/NerdFactory.git",
# :rails_env => "production"
# },
# :unicorn => { :bundled => true },
# :db => {
# :adapter => "mysql",
# :name => "nerdfactory_production",
# :host => "localhost"
# },
# :mysql => {
# :server_root_password => "dbpassword"
# }
# }
# end
# config.vm.provision :chef_client do |chef|
# chef.chef_server_url = "https://api.opscode.com/organizations/sprout"
# chef.validation_key_path = "/Users/millisami/chef-repo/.chef/sprout-validator.pem"
# chef.validation_client_name = "sprout-validator"
#
# chef.add_recipe "base"
# chef.add_recipe "rvm::install"
# chef.add_recipe "rvm::ruby_192"
# chef.add_recipe "mysql::client"
# chef.add_recipe "mysql::server"
# # chef.add_recipe "rails"
#
# chef.add_recipe "app"
#
# chef.json = {
# :base => {
# :system_packages => ["tree", "htop", "vim-nox"]
# },
# :app => {
# :repository => "https://github.com/millisami/NerdFactory.git"
# },
# :db => {
# :adapter => "mysql"
# },
# :mysql => {:server_root_password => "dbpassword"}
# }
# end
end