-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathVagrantfile
More file actions
66 lines (59 loc) · 2.2 KB
/
Vagrantfile
File metadata and controls
66 lines (59 loc) · 2.2 KB
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
# encoding: utf-8
# This file originally created at http://rove.io/59fb57342f8700a6d0aa12067d4967bb
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "opscode-ubuntu-12.04_chef-11.4.0"
config.vm.box_url = "https://opscode-vm-bento.s3.amazonaws.com/vagrant/opscode_ubuntu-12.04_chef-11.4.0.box"
config.ssh.forward_agent = true
config.vm.synced_folder ".", "/vagrant", :nfs => true
config.vm.network "private_network", ip: "192.168.123.123"
config.vm.network :forwarded_port, guest: 1337, host: 1337
config.vm.provision :chef_solo do |chef|
chef.cookbooks_path = ["cookbooks"]
chef.add_recipe :apt
chef.add_recipe 'nginx'
chef.add_recipe 'mysql::server'
chef.add_recipe 'nodejs'
chef.add_recipe 'git'
chef.add_recipe 'redis'
chef.json = {
:nginx => {
:dir => "/etc/nginx",
:log_dir => "/var/log/nginx",
:binary => "/usr/sbin/nginx",
:user => "www-data",
:init_style => "runit",
:pid => "/var/run/nginx.pid",
:worker_connections => "1024"
},
:mysql => {
:server_root_password => "password",
:server_repl_password => "password",
:server_debian_password => "password",
:service_name => "mysql",
:basedir => "/usr",
:data_dir => "/var/lib/mysql",
:root_group => "root",
:mysqladmin_bin => "/usr/bin/mysqladmin",
:mysql_bin => "/usr/bin/mysql",
:conf_dir => "/etc/mysql",
:confd_dir => "/etc/mysql/conf.d",
:socket => "/var/run/mysqld/mysqld.sock",
:pid_file => "/var/run/mysqld/mysqld.pid",
:grants_path => "/etc/mysql/grants.sql"
},
:git => {
:prefix => "/usr/local"
},
:redis => {
:bind => "127.0.0.1",
:port => "6379",
:config_path => "/etc/redis/redis.conf",
:daemonize => "yes",
:timeout => "300",
:loglevel => "notice"
}
}
end
end