forked from michaelklishin/cassandra-chef-cookbook
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.kitchen.yml
106 lines (96 loc) · 2.48 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
---
driver:
name: <%= ENV['KI_DRIVER'] || 'vagrant' %>
provisioner:
name: chef_zero
product_name: chef
product_version: 12.21.1
attributes:
java:
jdk_version: 8
cassandra:
# install_java: false
setup_jamm: true
notify_restart: true
config:
cluster_name: test
platforms:
- name: ubuntu-14.04
run_list:
<% 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.21.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.3
run_list:
- recipe[yum]
suites:
- name: default
run_list:
- recipe[cassandra-dse::default]
- name: opscenter-agent-datastax
attributes:
cassandra:
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: dsc22
attributes:
cassandra:
package_name: dsc22
version: 2.2.7
release: 1
run_list:
- recipe[cassandra-dse::default]
- name: dsc30
attributes:
java:
jdk_version: 8
cassandra:
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
attributes:
cassandra:
install_method: tarball
version: "3.9"
driver:
customize:
memory: 1280
run_list:
- recipe[cassandra-dse::default]
- name: dse
run_list:
- recipe[cassandra-dse::default]
attributes:
cassandra:
dse:
credentials:
databag: false
username: <%= ENV['CASSANDRA_DSE_USERNAME'] %>
password: <%= ENV['CASSANDRA_DSE_PASSWORD'] %>