]> git.openstreetmap.org Git - chef.git/blobdiff - .kitchen.yml
kitchen: pre-cache frequent apt packages in container
[chef.git] / .kitchen.yml
index a86bd7f543f8df057034b607fe5a34567af98dc4..34a4ccb040b5d7e539029f22b1f7aeb6b1bcd89c 100644 (file)
@@ -1,7 +1,7 @@
 ---
 driver:
   name: dokken
-  chef_version: 17
+  chef_version: 18
   volumes:
     - /var/lib/docker
   env:
@@ -14,6 +14,7 @@ provisioner:
   name: dokken
   chef_license: accept
   data_bags_path: test/data_bags
+  slow_resource_report: true
 
 verifier:
   root_path: /opt/verifier
@@ -27,6 +28,8 @@ platforms:
       pid_one_command: /bin/systemd
       intermediate_instructions:
         - RUN /usr/bin/apt-get update -y
+        # Pre-cache common required system packages
+        - RUN /usr/bin/apt-get install --download-only -y apache2 libwww-perl munin-node shorewall unattended-upgrades wireguard-tools zsh
   - name: ubuntu-22.04
     driver:
       image: dokken/ubuntu-22.04
@@ -34,6 +37,8 @@ platforms:
       pid_one_command: /bin/systemd
       intermediate_instructions:
         - RUN /usr/bin/apt-get update -y
+        # Pre-cache common required system packages
+        - RUN /usr/bin/apt-get install --download-only -y apache2 libwww-perl munin-node shorewall unattended-upgrades wireguard-tools zsh
 
 suites:
   - name: accounts