-
Notifications
You must be signed in to change notification settings - Fork 1
/
Vagrantfile
37 lines (34 loc) · 1.03 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure('2') do |config|
config.vm.hostname = 'rax-magento'
case ENV['VMBOX']
when 'centos65'
config.vm.box = "centos-6.5"
else
config.vm.box = 'ubuntu-12.04'
end
config.vm.box_url = "http://opscode-vm-bento.s3.amazonaws.com/vagrant/virtualbox/opscode_#{config.vm.box}_chef-provisionerless.box"
config.vm.network :private_network, ip: '33.33.33.11'
config.omnibus.chef_version = 'latest'
config.berkshelf.enabled = true
config.vm.provision :chef_solo do |chef|
chef.json = {
:mysql => {
:server_root_password => 'rootpass',
:server_debian_password => 'debpass',
:server_repl_password => 'replpass'
},
:magento => {
:domain => 'example.com',
:db => {
:password => 'magepass'
},
:sample_data_url => 'http://www.magentocommerce.com/downloads/assets/1.9.0.0/magento-sample-data-1.9.0.0.tar.gz'
}
}
chef.run_list = [
'recipe[rax-magento::default]'
]
end
end