forked from misheska-cookbooks/chef-server11
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.kitchen.yml
122 lines (113 loc) · 3.04 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
<%
chef_server_ip = ENV['CHEF_SERVER_IP'] ? ENV['CHEF_SERVER_IP'] : '192.168.33.34'
chef_node1_ip = ENV['CHEF_NODE1_IP'] ? ENV['CHEF_NODE1_IP'] : '192.168.33.35'
chef_node2_ip = ENV['CHEF_NODE2_IP'] ? ENV['CHEF_NODE2_IP'] : '192.168.33.36'
%>
---
driver:
name: vagrant
provisioner:
name: chef_solo
platforms:
- name: centos65
driver:
box: box-cutter/centos65
box_url: box-cutter/centos65
attributes:
chef_server11:
topology: 'standalone'
api_fqdn: 'standalone.vagrantup.com'
write_hosts: true
backend:
fqdn: 'standalone.vagrantup.com'
ipaddress: "<%= chef_server_ip %>"
nodes:
node1.vagrantup.com: "<%= chef_node1_ip %>"
node2.vagrantup.com: "<%= chef_node2_ip %>"
- name: ubuntu1404
driver:
box: box-cutter/ubuntu1404
box_url: box-cutter/ubuntu1404
network:
- ['private_network', {ip: "<%= chef_server_ip %>"}]
cutomize:
memory: 1536
suites:
- name: standalone
driver:
vm_hostname: standalone.vagrantup.com
network:
- ["private_network", {ip: "<%= chef_server_ip %>"}]
customize:
memory: 1536
run_list:
- recipe[chef-server11::standalone]
attributes:
chef_server11:
type: 'open_source'
- name: node1
driver:
vm_hostname: node1.vagrantup.com
network:
- ["private_network", {ip: "<%= chef_node1_ip %>"}]
customize:
memory: 512
run_list:
- recipe[chef-server11::node]
attributes:
chef_server11:
node_fqdn: node1.vagrantup.com
node_ipaddress: "<%= chef_node1_ip %>"
- name: node2
driver:
vm_hostname: node2.vagrantup.com
network:
- ["private_network", {ip: "<%= chef_node2_ip %>"}]
customize:
memory: 512
run_list:
- recipe[chef-server11::node]
attributes:
chef_server11:
node_fqdn: node2.vagrantup.com
node_ipaddress: "<%= chef_node2_ip %>"
- name: standalone-enterprise
driver:
vm_hostname: standalone.vagrantup.com
network:
- ["private_network", {ip: "<%= chef_server_ip %>"}]
customize:
memory: 1536
run_list:
- recipe[chef-server11::standalone]
attributes:
chef_server11:
type: 'enterprise'
- name: node1-enterprise
driver:
vm_hostname: node1.vagrantup.com
network:
- ["private_network", {ip: "<%= chef_node1_ip %>"}]
customize:
memory: 512
run_list:
- recipe[chef-server11::node]
attributes:
chef_server11:
type: 'enterprise'
node_fqdn: node1.vagrantup.com
node_ipaddress: "<%= chef_node1_ip %>"
- name: node2-enterprise
driver:
vm_hostname: node2.vagrantup.com
network:
- ["private_network", {ip: "<%= chef_node2_ip %>"}]
customize:
memory: 512
run_list:
- recipe[chef-server11::node]
attributes:
chef_server11:
type: 'enterprise'
node_fqdn: node2.vagrantup.com
node_ipaddress: "<%= chef_node2_ip %>"