refactor(kitchen): use YAML node anchors to minimise duplication

This commit is contained in:
Imran Iqbal 2021-07-14 09:08:02 +01:00 committed by Kirill Ponomarev
parent 7c56c504bf
commit 3690eeec50

View file

@ -56,19 +56,15 @@ platforms:
run_command: /lib/systemd/systemd run_command: /lib/systemd/systemd
- name: fedora-33 - name: fedora-33
driver: driver:
provision_command: provision_command: &fedora_provision_command
- dnf -y install procps-ng - dnf -y install procps-ng
- sed -i 's/^PubkeyAcceptedKeyTypes.*$/&,ssh-rsa/' /etc/crypto-policies/back-ends/opensshserver.config - sed -i 's/^PubkeyAcceptedKeyTypes.*$/&,ssh-rsa/' /etc/crypto-policies/back-ends/opensshserver.config
- name: fedora-34 - name: fedora-34
driver: driver:
provision_command: provision_command: *fedora_provision_command
- dnf -y install procps-ng
- sed -i 's/^PubkeyAcceptedKeyTypes.*$/&,ssh-rsa/' /etc/crypto-policies/back-ends/opensshserver.config
- name: fedora-35 - name: fedora-35
driver: driver:
provision_command: provision_command: *fedora_provision_command
- dnf -y install procps-ng
- sed -i 's/^PubkeyAcceptedKeyTypes.*$/&,ssh-rsa/' /etc/crypto-policies/back-ends/opensshserver.config
- name: gentoo - name: gentoo
driver: driver:
image: gentoo/stage3:latest image: gentoo/stage3:latest
@ -84,17 +80,14 @@ platforms:
- name: opensuse-15 - name: opensuse-15
driver: driver:
image: opensuse/leap:15.3 image: opensuse/leap:15.3
provision_command: provision_command: &opensuse_provision_command
- zypper --non-interactive install --auto-agree-with-licenses dbus-1 - zypper --non-interactive install --auto-agree-with-licenses dbus-1
- zypper --non-interactive install --auto-agree-with-licenses sudo openssh which curl systemd - zypper --non-interactive install --auto-agree-with-licenses sudo openssh which curl systemd
- systemctl enable sshd.service - systemctl enable sshd.service
- name: opensuse-tumbleweed - name: opensuse-tumbleweed
driver: driver:
image: opensuse/tumbleweed:latest image: opensuse/tumbleweed:latest
provision_command: provision_command: *opensuse_provision_command
- zypper --non-interactive install --auto-agree-with-licenses dbus-1
- zypper --non-interactive install --auto-agree-with-licenses sudo openssh which curl systemd
- systemctl enable sshd.service
- name: oraclelinux-8 - name: oraclelinux-8
- name: oraclelinux-7 - name: oraclelinux-7
- name: rockylinux-8 - name: rockylinux-8