From b6323834e592920cbf414549f02fa6e09ff3760a Mon Sep 17 00:00:00 2001 From: Eric Veiras Galisson Date: Tue, 26 Feb 2019 17:37:51 +0100 Subject: [PATCH] ci(kitchen): check for repos updates before trying package installation --- kitchen.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/kitchen.yml b/kitchen.yml index d6390964..3fa14bda 100644 --- a/kitchen.yml +++ b/kitchen.yml @@ -19,7 +19,7 @@ platforms: driver_config: run_command: /lib/systemd/systemd provision_command: - - apt install -y udev + - apt-get update && apt-get install -y udev # With the release of `2019.2`, `debian-8` is no longer working # Disabling until the following upstream bug has been resolved: # * https://github.com/saltstack/salt/issues/51808 @@ -27,17 +27,17 @@ platforms: # driver_config: # run_command: /lib/systemd/systemd # provision_command: - # - apt install -y udev + # - apt-get update && apt-get install -y udev - name: ubuntu-18.04 driver_config: run_command: /lib/systemd/systemd provision_command: - - apt install -y udev + - apt-get update && apt-get install -y udev - name: ubuntu-16.04 driver_config: run_command: /lib/systemd/systemd provision_command: - - apt install -y udev + - apt-get update && apt-get install -y udev - name: centos-7 driver_config: image: centos:7 @@ -50,7 +50,7 @@ platforms: driver_config: run_command: /usr/lib/systemd/systemd provision_command: - - yum install -y udev + - yum -y update && yum -y install udev # As of February 2019, there have been problems getting `opensuse` to work: # * `opensuse` is deprecated # * `opensuse/leap` grabs `15.x`, which doesn't run the `inspec` tests @@ -62,7 +62,7 @@ platforms: image: opensuse/salt-minion run_command: /usr/lib/systemd/systemd provision_command: - - zypper install -y udev + - zypper refresh && zypper install -y udev - systemctl enable sshd.service - cat /etc/os-release