-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVagrantfile
executable file
·62 lines (48 loc) · 1.74 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.hostname = "rsioa"
config.vm.box = "centos64"
config.vm.box_url = "http://developer.nrel.gov/downloads/vagrant-boxes/CentOS-6.4-x86_64-v20130427.box"
config.vm.network :private_network, ip: "192.168.33.15"
config.vm.boot_timeout = 120
config.vm.provider :virtualbox do |vb|
# Don't boot with headless mode
vb.gui = true
# Use VBoxManage to customize the VM. For example to change memory:
vb.customize ["modifyvm", :id, "--memory", "1024"]
end
config.vm.provision :chef_solo do |chef|
chef.cookbooks_path = ["./chef/cookbooks", "./chef/site-cookbooks"]
chef.add_recipe "yum-epel"
chef.add_recipe "apache2"
chef.add_recipe "apache2::mod_php5"
chef.add_recipe "apache2::mod_rewrite"
chef.add_recipe "iptables"
chef.add_recipe "mysql"
chef.add_recipe "mysql::client"
chef.add_recipe "mysql::server"
chef.add_recipe "php"
chef.add_recipe "php::module_mysql"
chef.add_recipe "rsioa"
chef.json = {
:apache => {
:default_site_enabled => true,
:docroot_dir => '/vagrant'
},
:mysql => {
:server_root_password => "rsioa",
:server_repl_password => "rsioa",
:server_debian_password => "rsioa"
},
:php => {
:timezone => 'Asia/Tokyo'
}
}
end
config.omnibus.chef_version = :latest
#config.berkshelf.enabled = true
config.vm.synced_folder "./", "/vagrant", :create => true, :owner=> 'vagrant', :mount_options => ['dmode=777','fmode=777']
end