Skip to content
This repository was archived by the owner on Dec 26, 2020. It is now read-only.

Commit c5a579f

Browse files
authored
Merge pull request #180 from dev-sec/kitchen_travis
Kitchen travis
2 parents 606e90f + 6fc8810 commit c5a579f

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

.kitchen.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,22 @@ platforms:
3535
driver:
3636
image: rndmh3ro/docker-centos7-ansible:latest
3737
platform: centos
38+
run_command: /sbin/init
39+
provision_command:
40+
- sed -i 's/UsePAM yes/UsePAM no/g' /etc/ssh/sshd_config
41+
- systemctl enable sshd.service
3842
- name: oracle6-ansible-latest
3943
driver:
4044
image: rndmh3ro/docker-oracle6-ansible:latest
4145
platform: centos
4246
- name: oracle7-ansible-latest
4347
driver:
4448
image: rndmh3ro/docker-oracle7-ansible:latest
49+
run_command: /sbin/init
4550
platform: centos
51+
provision_command:
52+
- sed -i 's/UsePAM yes/UsePAM no/g' /etc/ssh/sshd_config
53+
- systemctl enable sshd.service
4654
- name: ubuntu1404-ansible-latest
4755
driver:
4856
image: rndmh3ro/docker-ubuntu1404-ansible:latest
@@ -51,6 +59,9 @@ platforms:
5159
driver:
5260
image: rndmh3ro/docker-ubuntu1604-ansible:latest
5361
platform: ubuntu
62+
run_command: /sbin/init
63+
provision_command:
64+
- systemctl enable ssh.service
5465
- name: debian7-ansible-latest
5566
driver:
5667
image: rndmh3ro/docker-debian7-ansible:latest
@@ -63,10 +74,18 @@ platforms:
6374
driver:
6475
image: rndmh3ro/docker-debian9-ansible:latest
6576
platform: debian
77+
run_command: /sbin/init
78+
provision_command:
79+
- apt install -y systemd-sysv
80+
- systemctl enable ssh.service
6681
- name: amazon-ansible-latest
6782
driver:
6883
image: rndmh3ro/docker-amazon-ansible:latest
6984
platform: centos
85+
run_command: /sbin/init
86+
provision_command:
87+
- sed -i 's/UsePAM yes/UsePAM no/g' /etc/ssh/sshd_config
88+
- systemctl enable sshd.service
7089

7190
verifier:
7291
name: inspec

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,9 @@ env:
4444
run_opts: "--privileged --volume=/sys/fs/cgroup:/sys/fs/cgroup:ro"
4545

4646
- distro: amazon
47-
init: /sbin/init
47+
init: /lib/systemd/systemd
4848
version: latest
49+
run_opts: "--privileged --volume=/sys/fs/cgroup:/sys/fs/cgroup:ro"
4950

5051
before_install:
5152
# Pull container

0 commit comments

Comments
 (0)