forked from vkhatri/chef-aerospike-cluster
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.kitchen.yml
156 lines (145 loc) · 4.39 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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
---
<%
#--------------------------------------------------------------------------
# the driver_plugin can be overridden with an environment variable:
# $ KITCHEN_DRIVER=docker vagrant
# if not specified, defaults are used:
# - docker
#--------------------------------------------------------------------------
kitchen_driver = ENV['KITCHEN_DRIVER'] || 'docker'
puts "-----> driver_plugin: #{kitchen_driver.to_s}"
%>
settings:
parallel: true
driver:
name: <%= kitchen_driver %>
<% if kitchen_driver == 'docker' %>
privileged: true
<% end %>
driver_config:
require_chef_omnibus: true
provisioner:
name: chef_zero
platforms:
- name: ubuntu-14.04
driver_config:
<% if kitchen_driver == 'docker' %>
image: ubuntu:14.04
disable_upstart: false
provision_command:
- /usr/bin/apt-get update
- /usr/bin/apt-get install tar curl apt-transport-https net-tools -y
<% end %>
platform: ubuntu
- name: centos-7.2
driver_config:
<% if kitchen_driver == 'docker' %>
image: centos:7
run_command: /sbin/init
provision_command:
- /bin/yum install -y initscripts net-tools
- cd /lib/systemd/system/sysinit.target.wants/; for i in *; do [ $i == systemd-tmpfiles-setup.service ] || rm -f $i; done
- rm -f /lib/systemd/system/multi-user.target.wants/*
- rm -f /etc/systemd/system/*.wants/*
- rm -f /lib/systemd/system/local-fs.target.wants/*
- rm -f /lib/systemd/system/sockets.target.wants/*udev*
- rm -f /lib/systemd/system/sockets.target.wants/*initctl*
- rm -f /lib/systemd/system/basic.target.wants/*
- rm -f /lib/systemd/system/anaconda.target.wants/*
- sed -i 's/.*UseDNS.*/UseDNS no/g' /etc/ssh/sshd_config
- sed -i 's/.*UsePAM.*yes/UsePAM no/g' /etc/ssh/sshd_config
- sed -i 's/UsePrivilegeSeparation.*/UsePrivilegeSeparation no/g' /etc/ssh/sshd_config
- sed -i 's/.*PidFile.*/PidFile \/tmp\/sshd.pid/g' /etc/ssh/sshd_config
- systemctl enable sshd.service
volume: /sys/fs/cgroup
<% end %>
platform: centos
suites:
- name: default
run_list:
- recipe[aerospike-cluster::default]
attributes:
aerospike:
checksum_verify: false
install_method: 'package'
install_edition: 'community'
amc:
host: ''
- name: community-package
run_list:
- recipe[aerospike-cluster::default]
attributes:
aerospike:
checksum_verify: false
install_method: 'package'
install_edition: 'community'
amc:
host: ''
- name: community-package-multicast
run_list:
- recipe[aerospike-cluster::default]
- recipe[aerospike-cluster::cluster]
attributes:
aerospike:
checksum_verify: false
install_method: 'package'
install_edition: 'community'
config:
network:
heartbeat:
mode: multicast
address: '224.2.2.4'
- name: community-tarball
run_list:
- recipe[aerospike-cluster::default]
attributes:
aerospike:
checksum_verify: false
install_method: 'tarball'
install_edition: 'community'
amc:
host: ''
- name: community=tarball-multicast
run_list:
- recipe[aerospike-cluster::default]
- recipe[aerospike-cluster::cluster]
attributes:
aerospike:
checksum_verify: false
install_method: 'tarball'
install_edition: 'community'
config:
network:
heartbeat:
mode: multicast
address: '224.2.2.4'
- name: enterprise-package
run_list:
- recipe[aerospike-cluster::default]
attributes:
aerospike:
checksum_verify: false
install_method: 'package'
install_edition: 'enterprise'
enterprise:
username: null
password: null
amc:
host: ''
- name: enterprise-package-multicast
run_list:
- recipe[aerospike-cluster::default]
- recipe[aerospike-cluster::cluster]
attributes:
aerospike:
checksum_verify: false
install_method: 'package'
install_edition: 'enterprise'
enterprise:
username: null
password: null
config:
network:
heartbeat:
mode: multicast
address: '224.2.2.4'