-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.kitchen.yml
85 lines (79 loc) · 2.21 KB
/
.kitchen.yml
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
---
driver:
name: vagrant
provider: virtualbox
vagrantfile_erb: Vagrantfile.erb
provision: true
network:
- ["private_network", {type: "dhcp"}]
#- ["private_network", {ip: "33.33.33.33"}]
#- ["forwarded_port", {guest: 80, host: 8888}]
customize:
# it may require to set a route
# sudo route add 10.0.0.0/24 -interface vboxnet0
hostonlyadapter2: vboxnet0
memory: 1024
#cpuexecutioncap: 50
synced_folders:
- [".", "/vagrant", "create: true"]
provisioner:
name: chef_zero
require_chef_omnibus: true
#require_chef_omnibus: 11.12.8
#chef_omnibus_url https://www.chef.io/chef/install.sh
#chef_omnibus_install_options: -d <%= ENV['HOME'] %>/.vagrant.d/cache/vagrant_omnibus
chef_omnibus_install_options: -d /tmp/vagrant-cache/vagrant_omnibus
#data_bags_path: chef/data_bags
#roles_path: test/integration/roles
#environments_path: test/integration/environments
#nodes_path: test/integration/nodes
#Use to specify the path from which non-cookbook files are copied to a Kitchen instance.
#data_path: test/integration/data
client_rb:
environment: _default
#http_proxy: http://192.168.1.1
#https_proxy: http://192.168.2.2
attributes:
percona:
#skip_passwords: true
#apt_keyserver: 'hkp://keys.gnupg.net'
master: '10.0.0.105'
slaves:
- '10.0.0.106'
server:
root_password: 'vagrant'
debian_password: 'vagrant'
#bind_to: 'private_ip'
#includedir: '/etc/mysql/conf.d/'
replication:
password: 'vagrant'
#authorization:
#sudo:
#users: ['vagrant']
#passwordless: true
platforms:
- name: ubuntu/trusty64
- name: bento/centos-7.1
suites:
- name: master
driver:
network:
- ["private_network", {ip: "10.0.0.105"}]
attributes:
percona:
server:
bind_address: '10.0.0.105'
run_list:
- recipe[percona-multi::master]
#- recipe[percona::server]
- name: slave
#excludes: ubuntu/trusty64
driver:
network:
- ["private_network", {ip: "10.0.0.106"}]
attributes:
percona:
server:
bind_address: '10.0.0.106'
run_list:
- recipe[percona-multi::slave]