forked from criteo-forks/cassandra-chef-cookbook
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.kitchen.yml
119 lines (108 loc) · 2.8 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
---
driver:
name: <%= ENV['KI_DRIVER'] || 'vagrant' %>
provisioner:
name: chef_zero
attributes:
cassandra:
cluster_name: test
platforms:
- name: ubuntu-14.04
run_list:
- recipe[apt]
<% if (ENV['KI_DRIVER'] == 'docker') then %>
driver_config:
provision_command:
- apt-get update && apt-get install net-tools
- curl -L https://www.opscode.com/chef/install.sh | bash -s -- -v 12.4.1
- env GEM_HOME=/tmp/verifier/gems GEM_PATH=/tmp/verifier/gems GEM_CACHE=/tmp/verifier/gems/cache /opt/chef/embedded/bin/gem install thor busser busser-serverspec serverspec bundler && chown -R kitchen:kitchen /tmp/verifier
require_chef_omnibus: false
use_sudo: false
<% else %>
# without additional memory, ubuntu suites will fail
customize:
memory: 1024
<% end %>
- name: centos-7.2
run_list:
- recipe[yum]
suites:
- name: default
run_list:
- recipe[cassandra-dse::default]
attributes:
cassandra:
config:
cluster_name: "kitchen test"
- name: opscenter-agent-datastax
attributes:
cassandra:
config:
cluster_name: "kitchen test"
opscenter:
agent:
server_host: 0.0.0.0
use_chef_search: false
run_list:
- recipe[cassandra-dse::default]
- recipe[cassandra-dse::opscenter_agent_datastax]
- name: opscenter-server-datastax
run_list:
- recipe[cassandra-dse::default]
- recipe[cassandra-dse::opscenter_server]
- name: dsc21
attributes:
cassandra:
config:
cluster_name: "kitchen test"
package_name: dsc21
version: 2.1.10
release: 1
run_list:
- recipe[cassandra-dse::default]
- name: dsc20
attributes:
cassandra:
config:
cluster_name: "kitchen test"
package_name: dsc20
version: 2.0.16
release: 1
run_list:
- recipe[cassandra-dse::default]
- name: dsc30
attributes:
java:
jdk_version: 8
cassandra:
config:
cluster_name: "kitchen test"
package_name: dsc30
version: 3.0.6
release: 1
setup_jna: true
user_home: '/home/cassandra'
driver:
customize:
memory: 1280
run_list:
- recipe[cassandra-dse::default]
- name: tarball
run_list:
- recipe[cassandra-dse::tarball]
attributes:
cassandra:
config:
cluster_name: "kitchen test"
- name: dse
run_list:
- recipe[cassandra-dse::default]
attributes:
cassandra:
config:
cluster_name: "kitchen test"
dse:
credentials:
databag: false
username: <%= ENV['CASSANDRA_DSE_USERNAME'] %>
password: <%= ENV['CASSANDRA_DSE_PASSWORD'] %>