-
Notifications
You must be signed in to change notification settings - Fork 7
/
.kitchen.yml
68 lines (64 loc) · 2.03 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
<% # Make sure the local copy of the driver is loaded %>
<% lib = File.expand_path('../lib', __FILE__) %>
<% $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) %>
---
driver:
name: linode
provisioner:
name: dummy
platforms:
- name: linode/almalinux8
- name: linode/almalinux9
- name: linode/alpine3.16
- name: linode/arch
- name: linode/centos7
- name: linode/centos-stream8
- name: linode/centos-stream9
- name: linode/debian10
- name: linode/debian11
- name: linode/fedora36
- name: linode/gentoo
- name: linode/kali
- name: linode/opensuse15.4
- name: linode/rocky8
- name: linode/slackware15.0
- name: linode/ubuntu20.04
- name: linode/ubuntu22.04
suites:
- name: default
excludes:
- linode/almalinux9
- linode/alpine3.16
- linode/centos-stream9
- linode/arch
- linode/fedora36
- linode/gentoo
- linode/kali
- linode/slackware15.0
- linode/ubuntu22.04
# All of these ship with OpenSSH 8.8+, switch to ecdsa
# keys until test-kitchen bumps net-ssh to 7.0+.
# See: https://github.com/net-ssh/net-ssh/issues/836
- name: ecdsa
driver:
private_key_path: ~/.ssh/id_ecdsa
includes:
- linode/almalinux9
- linode/alpine3.16
- linode/centos-stream9
- linode/arch
- linode/fedora36
- linode/gentoo
- linode/kali
- linode/slackware15.0
- linode/ubuntu22.04
verifier:
name: shell
# simple check to test:
# - ssh connectivity
# - hostname was set correctly
# - ssh password auth was disabled
command: >-
set -x &&
test "$(ssh -i ${KITCHEN_SSH_KEY} ${KITCHEN_USERNAME}@${KITCHEN_HOSTNAME} -p ${KITCHEN_PORT:-22} -o 'StrictHostKeyChecking=no' -o 'UserKnownHostsFile=/dev/null' -o 'LogLevel=ERROR' 'hostname')" = "${KITCHEN_INSTANCE}" &&
ssh -i ${KITCHEN_SSH_KEY} ${KITCHEN_USERNAME}@${KITCHEN_HOSTNAME} -p ${KITCHEN_PORT:-22} -o 'StrictHostKeyChecking=no' -o 'UserKnownHostsFile=/dev/null' -o 'LogLevel=ERROR' 'grep -qe "^PasswordAuthentication no$" /etc/ssh/sshd_config'