Closed tomharvey closed 6 years ago
Any ETA or workaround on this one. We are testing the same on Linux 2 and still getting the same rhel6 error.
I would assume it’s somewhat dependent on https://github.com/chef/ohai/pull/1214 being released, which will allow the project to correctly get platform info from ohai
You'll want to upgrade to the latest Chef 13 or 14 to get support for Amazon Linux 2. Chef 12 does not support that release.
@tas50 I am facing the same issue with Chef 13 and 14.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Cookbook version
8.1.2
Chef-client version
12.15.19
Platform Details
Amazon Machine Linux 2 - gbailey/amzn2 vagrant file
Scenario:
Running the default receipt for this cookbook fails.
Looks like https://github.com/chef-cookbooks/nginx/blob/22a1b6365755782e82067d61ab34a0569c5c1704/attributes/repo.rb#L30 is assuming that all amazon platform should use the rhel6 rpm. But Amazon Machine Linux 2 requires rhel7.
AML2 also changes its name
/etc/system-release
more often than the artist formerly known as Prince.Steps to Reproduce:
Use a kitchen config file as below:
and then include the default recipe of this package and
kitchen converge
it.Expected Result:
I expect it to converge.
Actual Result:
It doesn't converge. The key parts of the STDERR message which lead me to the line of code above are:
and