shinesolutions / packer-aem

Adobe Experience Manager (AEM) machine images builder using Packer
Apache License 2.0
20 stars 20 forks source link

AMI Baking failing while installation InSpec #257

Closed mbloch1986 closed 2 years ago

mbloch1986 commented 2 years ago

Describe the bug The AMI Baking is faling at the installation step to install InSpec.

Error message:

[0;32m    aws: [1;31mError: /Stage[main]/Config/Package[inspec]/ensure: change from 'absent' to '1.51.6' failed: Could not update: Execution of '/opt/puppetlabs/puppet/bin/gem install -v 1.51.6 --no-document inspec' returned 1: ERROR:  Error installing inspec:[0m
[0;32m    aws:  faraday requires Ruby version >= 2.6.[0m

The latest version of faraday requires ruby 2.6, but we are still using ruby 2.4.

To Reproduce

  1. Start AMI baking of any component and wait until it fails

Expected behavior The installation of InSpec should pass

Environment (please complete the following information if relevant):

Additional context A proposed solution could be to lockdown the version of faraday to the last working version with ruby 2.4 https://github.com/lostisland/faraday/releases/tag/v1.9.3

similar was done in the past with parallel https://github.com/shinesolutions/packer-aem/commit/ae0358b41bc1f1d6bed7b0041cbc745a15bb2da5

mbloch1986 commented 2 years ago

Bug has been fixed in version 5.12.0