Skip to content

Commit 4db6fde

Browse files
authored
Merge pull request #116 from cisagov/improvement/add-support-for-hw-platforms
Explicitly specify the hardware platforms for the various Molecule platforms
2 parents 6b06b7c + 24f81bb commit 4db6fde

File tree

2 files changed

+84
-60
lines changed

2 files changed

+84
-60
lines changed

molecule/default/molecule-no-systemd.yml

Lines changed: 36 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -16,31 +16,43 @@ lint: |
1616
ansible-lint
1717
flake8
1818
platforms:
19-
- name: amazonlinux2
20-
image: amazonlinux:2
21-
- name: debian9
19+
- image: amazonlinux:2
20+
name: amazonlinux2
21+
platform: amd64
22+
- dockerfile: Dockerfile_debian_9.j2
2223
image: debian:stretch-slim
23-
dockerfile: Dockerfile_debian_9.j2
24-
- name: debian10
25-
image: debian:buster-slim
26-
- name: debian11
27-
image: debian:bullseye-slim
28-
- name: debian12
29-
image: debian:bookworm-slim
30-
- name: kali
31-
image: kalilinux/kali-rolling
32-
- name: fedora35
33-
image: fedora:35
34-
- name: fedora36
35-
image: fedora:36
36-
- name: fedora37
37-
image: fedora:37
38-
- name: ubuntu18
39-
image: ubuntu:bionic
40-
- name: ubuntu20
41-
image: ubuntu:focal
42-
- name: ubuntu22
43-
image: ubuntu:jammy
24+
name: debian9
25+
platform: amd64
26+
- image: debian:buster-slim
27+
name: debian10
28+
platform: amd64
29+
- image: debian:bullseye-slim
30+
name: debian11
31+
platform: amd64
32+
- image: debian:bookworm-slim
33+
name: debian12
34+
platform: amd64
35+
- image: kalilinux/kali-rolling
36+
name: kali
37+
platform: amd64
38+
- image: fedora:35
39+
name: fedora35
40+
platform: amd64
41+
- image: fedora:36
42+
name: fedora36
43+
platform: amd64
44+
- image: fedora:37
45+
name: fedora37
46+
platform: amd64
47+
- image: ubuntu:bionic
48+
name: ubuntu18
49+
platform: amd64
50+
- image: ubuntu:focal
51+
name: ubuntu20
52+
platform: amd64
53+
- image: ubuntu:jammy
54+
name: ubuntu22
55+
platform: amd64
4456
provisioner:
4557
name: ansible
4658
inventory:

molecule/default/molecule-with-systemd.yml

Lines changed: 48 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -15,90 +15,102 @@ lint: |
1515
ansible-lint
1616
flake8
1717
platforms:
18-
- name: amazonlinux2-systemd
18+
- command: /lib/systemd/systemd
1919
image: geerlingguy/docker-amazonlinux2-ansible:latest
20+
name: amazonlinux2-systemd
21+
platform: amd64
22+
pre_build_image: yes
2023
privileged: yes
2124
volumes:
2225
- /sys/fs/cgroup:/sys/fs/cgroup:ro
23-
command: /lib/systemd/systemd
24-
pre_build_image: yes
25-
- name: debian9-systemd
26+
- command: /lib/systemd/systemd
2627
image: geerlingguy/docker-debian9-ansible:latest
28+
name: debian9-systemd
29+
platform: amd64
30+
pre_build_image: yes
2731
privileged: yes
2832
volumes:
2933
- /sys/fs/cgroup:/sys/fs/cgroup:ro
30-
command: /lib/systemd/systemd
31-
pre_build_image: yes
32-
- name: debian10-systemd
34+
- command: /lib/systemd/systemd
3335
image: geerlingguy/docker-debian10-ansible:latest
36+
name: debian10-systemd
37+
platform: amd64
38+
pre_build_image: yes
3439
privileged: yes
3540
volumes:
3641
- /sys/fs/cgroup:/sys/fs/cgroup:ro
37-
command: /lib/systemd/systemd
38-
pre_build_image: yes
39-
- name: debian11-systemd
42+
- command: /lib/systemd/systemd
4043
image: geerlingguy/docker-debian11-ansible:latest
44+
name: debian11-systemd
45+
platform: amd64
46+
pre_build_image: yes
4147
privileged: yes
4248
volumes:
4349
- /sys/fs/cgroup:/sys/fs/cgroup:ro
44-
command: /lib/systemd/systemd
45-
pre_build_image: yes
46-
- name: debian12-systemd
50+
- command: /lib/systemd/systemd
4751
image: cisagov/docker-debian12-ansible:latest
52+
name: debian12-systemd
53+
platform: amd64
54+
pre_build_image: yes
4855
privileged: yes
4956
volumes:
5057
- /sys/fs/cgroup:/sys/fs/cgroup:ro
51-
command: /lib/systemd/systemd
52-
pre_build_image: yes
53-
- name: kali-systemd
58+
- command: /lib/systemd/systemd
5459
image: cisagov/docker-kali-ansible:latest
60+
name: kali-systemd
61+
platform: amd64
62+
pre_build_image: yes
5563
privileged: yes
5664
volumes:
5765
- /sys/fs/cgroup:/sys/fs/cgroup:ro
58-
command: /lib/systemd/systemd
59-
pre_build_image: yes
60-
- name: fedora35-systemd
66+
- command: /lib/systemd/systemd
6167
image: geerlingguy/docker-fedora35-ansible:latest
68+
name: fedora35-systemd
69+
platform: amd64
70+
pre_build_image: yes
6271
privileged: yes
6372
volumes:
6473
- /sys/fs/cgroup:/sys/fs/cgroup:ro
65-
command: /lib/systemd/systemd
66-
pre_build_image: yes
67-
- name: fedora36-systemd
74+
- command: /lib/systemd/systemd
6875
image: geerlingguy/docker-fedora36-ansible:latest
76+
name: fedora36-systemd
77+
platform: amd64
78+
pre_build_image: yes
6979
privileged: yes
7080
volumes:
7181
- /sys/fs/cgroup:/sys/fs/cgroup:ro
72-
command: /lib/systemd/systemd
73-
pre_build_image: yes
74-
- name: fedora37-systemd
82+
- command: /lib/systemd/systemd
7583
image: geerlingguy/docker-fedora37-ansible:latest
84+
name: fedora37-systemd
85+
platform: amd64
86+
pre_build_image: yes
7687
privileged: yes
7788
volumes:
7889
- /sys/fs/cgroup:/sys/fs/cgroup:ro
79-
command: /lib/systemd/systemd
80-
pre_build_image: yes
81-
- name: ubuntu-18-systemd
90+
- command: /lib/systemd/systemd
8291
image: geerlingguy/docker-ubuntu1804-ansible:latest
92+
name: ubuntu-18-systemd
93+
platform: amd64
94+
pre_build_image: yes
8395
privileged: yes
8496
volumes:
8597
- /sys/fs/cgroup:/sys/fs/cgroup:ro
86-
command: /lib/systemd/systemd
87-
pre_build_image: yes
88-
- name: ubuntu-20-systemd
98+
- command: /lib/systemd/systemd
8999
image: geerlingguy/docker-ubuntu2004-ansible:latest
100+
name: ubuntu-20-systemd
101+
platform: amd64
102+
pre_build_image: yes
90103
privileged: yes
91104
volumes:
92105
- /sys/fs/cgroup:/sys/fs/cgroup:ro
93-
command: /lib/systemd/systemd
94-
pre_build_image: yes
95-
- name: ubuntu-22-systemd
106+
- command: /lib/systemd/systemd
96107
image: geerlingguy/docker-ubuntu2204-ansible:latest
108+
name: ubuntu-22-systemd
109+
platform: amd64
110+
pre_build_image: yes
97111
privileged: yes
98112
volumes:
99113
- /sys/fs/cgroup:/sys/fs/cgroup:ro
100-
command: /lib/systemd/systemd
101-
pre_build_image: yes
102114
provisioner:
103115
name: ansible
104116
inventory:

0 commit comments

Comments
 (0)