-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.kitchen.yml
247 lines (242 loc) · 8.22 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
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
---
driver:
name: docker
use_sudo: false
privileged: true
provisioner:
name: puppet_apply
manifests_path: manifests
modules_path: modules_mycompany
hiera_data_path: hieradata
require_puppet_repo: true
require_chef_for_busser: false
librarian_puppet_ssl_file: 'C:/repository/puppet_docker_repo/cacert.pem'
puppet_debug: true
puppet_verbose: true
install_custom_facts: true
ignored_paths_from_root: []
puppet_detailed_exitcodes: true
puppet_whitelist_exit_code: 2
# puppet_whitelist_exit_code:
# - 2
retry_on_exit_code:
- 0
- 4
- 6
max_retries: 2
platforms:
- name: centos-6-pup5
provisioner:
puppet_yum_repo: https://yum.puppetlabs.com/puppetlabs-release-el-6.noarch.rpm
puppet_yum_collections_repo: http://yum.puppetlabs.com/puppet5/puppet5-release-el-6.noarch.rpm
driver_config:
image: centos:6.6
platform: centos
- name: centos-7-pup5
provisioner:
puppet_yum_repo: https://yum.puppetlabs.com/puppetlabs-release-el-7.noarch.rpm
puppet_yum_collections_repo: http://yum.puppetlabs.com/puppet5/puppet5-release-el-7.noarch.rpm
driver:
image: centos:7
run_command: /usr/sbin/init
- name: centos-7-pup6
provisioner:
puppet_yum_repo: https://yum.puppetlabs.com/puppetlabs-release-el-7.noarch.rpm
puppet_yum_collections_repo: http://yum.puppetlabs.com/puppet6/puppet6-release-el-7.noarch.rpm
driver:
image: centos:7
run_command: /usr/sbin/init
- name: centos-8-pup6
provisioner:
puppet_yum_repo: https://yum.puppetlabs.com/puppetlabs-release-el-8.noarch.rpm
puppet_yum_collections_repo: http://yum.puppetlabs.com/puppet6/puppet6-release-el-8.noarch.rpm
driver_config:
image: centos:8
platform: centos
- name: debian-8-pup5
provisioner:
# custom_pre_install_command: |
# sudo apt-get -y install apt-transport-https
puppet_apt_repo: https://apt.puppetlabs.com/puppetlabs-release-trusty.deb
puppet_apt_collections_repo: http://apt.puppetlabs.com/puppet5-release-trusty.deb
driver_config:
image: debian:8
platform: debian
- name: debian-9-pup5
provisioner:
# custom_pre_install_command: |
# sudo apt-get -y install apt-transport-https
puppet_apt_repo: https://apt.puppetlabs.com/puppetlabs-release-xenial.deb
puppet_apt_collections_repo: http://apt.puppetlabs.com/puppet5-release-xenial.deb
driver_config:
image: debian:9
platform: debian
- name: debian-9-pup6
provisioner:
puppet_apt_repo: https://apt.puppetlabs.com/puppetlabs-release-xenial.deb
puppet_apt_collections_repo: http://apt.puppetlabs.com/puppet6-release-xenial.deb
driver_config:
image: debian:9
platform: debian
- name: opensuse-42-pup5
driver_config:
image: opensuse/leap:42.3
platform: opensuse
provisioner:
# custom_pre_install_command: |
# sudo zypper addrepo -n puppet5 -f -G http://yum.puppetlabs.com/puppet5/sles/12/x86_64 puppet5
# sudo http_proxy=<%= ENV['http_proxy'] %> https_proxy=<%= ENV['https_proxy'] %> zypper install -y puppet-agent kmod
- name: opensuse-15-pup5
driver_config:
image: opensuse/leap:15
platform: opensuse
provisioner:
# custom_pre_install_command: |
# sudo zypper addrepo -n puppet5 -f -G http://yum.puppetlabs.com/puppet5/sles/12/x86_64 puppet5
# sudo http_proxy=<%= ENV['http_proxy'] %> https_proxy=<%= ENV['https_proxy'] %> zypper install -y puppet-agent
- name: opensuse-15-pup6
driver_config:
image: opensuse/leap:15
platform: opensuse
provisioner:
# custom_pre_install_command: |
# sudo zypper addrepo -n puppet6 -f -G http://yum.puppetlabs.com/puppet6/sles/12/x86_64 puppet6
# sudo http_proxy=<%= ENV['http_proxy'] %> https_proxy=<%= ENV['https_proxy'] %> zypper install -y puppet-agent
- name: oracle-6-pup5
driver_config:
image: oraclelinux:6
platform: rhel
provisioner:
puppet_yum_repo: https://yum.puppetlabs.com/puppetlabs-release-el-6.noarch.rpm
puppet_yum_collections_repo: http://yum.puppetlabs.com/puppet5/puppet5-release-el-6.noarch.rpm
- name: oracle-7-pup5
driver_config:
image: oraclelinux:7
platform: rhel
provisioner:
puppet_yum_repo: https://yum.puppetlabs.com/puppetlabs-release-el-7.noarch.rpm
puppet_yum_collections_repo: http://yum.puppetlabs.com/puppet5/puppet5-release-el-7.noarch.rpm
- name: oracle-7-pup6
driver_config:
image: oraclelinux:7
platform: rhel
provisioner:
puppet_yum_repo: https://yum.puppetlabs.com/puppetlabs-release-el-7.noarch.rpm
puppet_yum_collections_repo: http://yum.puppetlabs.com/puppet6/puppet6-release-el-7.noarch.rpm
- name: ubuntu-16-04-pup5
driver_config:
image: ubuntu:16.04
platform: ubuntu
provisioner:
# custom_pre_install_command: |
# sudo apt-get -y install apt-transport-https
puppet_apt_repo: https://apt.puppetlabs.com/puppetlabs-release-xenial.deb
puppet_apt_collections_repo: http://apt.puppetlabs.com/puppet5-release-xenial.deb
- name: ubuntu-18-04-pup5
driver_config:
image: ubuntu:18.04
platform: ubuntu
provisioner:
puppet_apt_repo: https://apt.puppetlabs.com/puppetlabs-release-xenial.deb
puppet_apt_collections_repo: http://apt.puppetlabs.com/puppet5-release-bionic.deb
- name: ubuntu-18-04-pup6
driver_config:
image: ubuntu:18.04
platform: ubuntu
provisioner:
puppet_apt_repo: https://apt.puppetlabs.com/puppetlabs-release-xenial.deb
puppet_apt_collections_repo: http://apt.puppetlabs.com/puppet6-release-bionic.deb
- name: ubuntu-19-10-pup6
driver_config:
image: ubuntu:19.10
platform: ubuntu
provisioner:
puppet_apt_repo: https://apt.puppetlabs.com/puppetlabs-release-xenial.deb
puppet_apt_collections_repo: http://apt.puppetlabs.com/puppet6-release-bionic.deb
- name: ubuntu-20-04-pup6
driver_config:
image: ubuntu:20.04
platform: ubuntu
provisioner:
puppet_apt_repo: https://apt.puppetlabs.com/puppetlabs-release-xenial.deb
puppet_apt_collections_repo: http://apt.puppetlabs.com/puppet6-release-bionic.deb
#platforms:
#- name: ubuntu-20.04
# driver_config:
# image: ubuntu:20.04
# platform: ubuntu
#- name: ubuntu-19.10
# driver_config:
# image: ubuntu:19.10
# platform: ubuntu
#- name: ubuntu-17.04
# driver_config:
# image: ubuntu:17.04
# platform: ubuntu
#- name: ubuntu-16.04
# driver_config:
# image: ubuntu:16.04
# platform: ubuntu
#- name: centos-6.6
# driver_config:
# image: centos:6.6
# platform: centos
#- name: centos-8
# driver_config:
# image: centos:8
# platform: centos
## run_command: /usr/sbin/init
#- name: centos-7
# driver_config:
# image: centos:latest
# platform: centos
# run_command: /usr/sbin/init
#- name: 'centos'
# driver_plugin: docker
# driver:
# use_sudo: false
# image: centos:7
# run_command: /usr/sbin/init
verifier:
name: serverspec
suites:
- name: ws
provisioner:
custom_facts:
role_name1: base
role_name2: webserver
# my_hash:
# - one: hello
# - two: world
# other_hash:
# one: hello
# two: world
verifier:
# test with default_pattern or specify a pattern in the repository
default_pattern: true
#patterns:
#- modules/mycompany_base/spec/acceptance/base_spec.rb
env_vars:
TARGET_HOST: 127.0.0.1
TARGET_PORT: 2222
LOGIN_USER: root
LOGIN_PASSWORD: puppet
# - name: pup4
# provisioner:
# require_puppet_repo: false
# require_puppet_collections: true
# puppet_yum_collections_repo: https://yum.puppetlabs.com/puppetlabs-release-pc1-el-7.noarch.rpm
# puppet_apt_collections_repo: http://apt.puppetlabs.com/puppetlabs-release-pc1-xenial.deb
# custom_facts:
# role_name1: base
# role_name2: webserver
# verifier:
# # test with default_pattern or specify a pattern in the repository
# default_pattern: true
# #patterns:
# #- modules/mycompany_base/spec/acceptance/base_spec.rb
# env_vars:
# TARGET_HOST: 127.0.0.1
# TARGET_PORT: 2222
# LOGIN_USER: root
# LOGIN_PASSWORD: puppet