forked from sous-chefs/redisio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.kitchen.yml
118 lines (110 loc) · 2.67 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
---
driver:
name: vagrant
driver_config:
use_vagrant_berkshelf_plugin: true
provisioner:
name: chef_solo
platforms:
<%
chef_versions = %w(
11.0.0
latest
)
# non RHEL OS's
test_platforms = %w(
ubuntu-12.04
ubuntu-14.04
debian-6.0.10
freebsd-10.3
)
# RHEL OS's
test_platforms_rhel = %w(
centos-6.8
centos-7.1
)
%>
<% test_platforms.product(chef_versions).each do |platform_version, chef_version| %>
- name: <%= platform_version %>-<%= chef_version %>
driver_config:
box: bento/<%= platform_version %>
require_chef_omnibus: <%= chef_version %>
<% end %>
<% test_platforms_rhel.product(chef_versions).each do |platform_version, chef_version| %>
- name: <%= platform_version %>-<%= chef_version %>
driver_config:
box: bento/<%= platform_version %>
require_chef_omnibus: <%= chef_version %>
run_list:
- recipe[yum-epel::default]
- recipe[yum-remi::default]
<% end %>
suites:
- name: default
run_list:
- recipe[redisio::default]
- recipe[redisio::enable]
attributes:
redisio:
servers:
- port: 6379
- port: 16379
name: 'savetest'
save: "a\nb\nc"
- name: redis-package
run_list:
- recipe[redisio::default]
- recipe[redisio::enable]
attributes:
redisio:
servers:
- port: 6379
package_install: true
version:
excludes:
<% # OS's to exclude
test_platforms = %w(
ubuntu-12.04
debian-6.0.10
)
test_platforms.product(chef_versions).each do |platform_version, chef_version|
%>
- <%= platform_version %>-<%= chef_version %>
<% end %>
- name: sentinel
run_list:
- recipe[redisio::default]
- recipe[redisio::enable]
- recipe[redisio::sentinel]
- recipe[redisio::sentinel_enable]
attributes:
redisio:
servers:
- port: 6379
- name: multisentinel
run_list:
- recipe[redisio::default]
- recipe[redisio::enable]
- recipe[redisio::sentinel]
- recipe[redisio::sentinel_enable]
attributes:
redisio:
servers:
- port: 6379
- port: 6380
sentinels:
-
name: 'cluster'
sentinel_bind: 0.0.0.0
sentinel_port: 26379
masters:
-
name: 'sentinel6379'
master_name: 'master6379'
master_ip: '127.0.0.1'
master_port: 6379
-
name: 'sentinel6380'
master_name: 'master6380'
master_ip: '127.0.0.1'
master_port: 6380