This repository has been archived by the owner on Jun 26, 2024. It is now read-only.
forked from sous-chefs/redisio
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.kitchen.yml
111 lines (105 loc) · 2.51 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
---
driver:
name: vagrant
provisioner:
name: chef_solo
product_name: chef
product_version: 13
platforms:
<%
chef_versions = %w(
13.3.0
latest
)
# non RHEL OS's
test_platforms = %w(
centos-6
centos-7
debian-8
debian-9
fedora-28
freebsd-11
ubuntu-16.04
ubuntu-18.04
)
%>
<% test_platforms.product(chef_versions).each do |platform_version, chef_version| %>
- name: <%= platform_version %>-<%= chef_version %>
driver_config:
box: bento/<%= platform_version %>
product_name: chef
product_version: <%= chef_version %>
<% if platform_version == 'debian-7.11' %>
# Set due to https://github.com/test-kitchen/kitchen-vagrant/issues/293
driver:
kitchen_cache_directory: .kitchen/cache/debian
<% end %>
<% if platform_version.start_with?('centos') %>
run_list:
- recipe[yum-epel::default]
- recipe[yum-remi::default]
<% end %>
<% 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::install]
- recipe[redisio::disable_os_default]
- recipe[redisio::configure]
- recipe[redisio::enable]
attributes:
redisio:
bypass_setup: true
servers:
- port: 6379
package_install: true
version:
- 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