Skip to content
This repository has been archived by the owner on Dec 31, 2022. It is now read-only.

Nginx cookbook - minimun Chef version #222

Closed
djgable opened this issue Sep 4, 2019 · 3 comments
Closed

Nginx cookbook - minimun Chef version #222

djgable opened this issue Sep 4, 2019 · 3 comments

Comments

@djgable
Copy link
Contributor

djgable commented Sep 4, 2019

The nginx cookbook is expecting a minimum chef version of 14. As far as I know its only possible to have up to ~>12 with OpsWorks. This seems to be with respect to a new version of the nginx cookbook released last month (10.0.1).

Expected Behavior

Upgrading from 1.14.0 to 1.15.0, expecting a successful deployment.

Actual Behavior

deployment / updates fail. Error message states that the minimum nginx version is not met.

Chef log including error

[2019-09-04T17:50:03+00:00] ERROR: Cookbook 'nginx' version '10.0.1' depends on chef version [">= 14"], but the running chef version is 12.18.31
[2019-09-04T17:50:03+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
@aka47
Copy link
Contributor

aka47 commented Sep 5, 2019

Adding cookbook 'nginx', '8.1.6' to the Berksfile fixes it for now.. also had to add cookbook 'ohai', '5.2.5'

cookbook 'nginx', '8.1.6'
cookbook 'ohai', '5.2.5'

@djgable
Copy link
Contributor Author

djgable commented Sep 5, 2019

Yeah @aka47, I did the same thing and it worked. I believe the only thing that differed from your code is that I used nginx ver 9.0.0.

@ajgon ajgon closed this as completed in b5b13d0 Sep 11, 2019
@inopinatus
Copy link
Contributor

inopinatus commented Sep 11, 2019

I went with depends 'nginx', '<9.0.0' in my metadata.rb because there was something off about the 9.0.0 release.

dotnofoolin pushed a commit to dotnofoolin/opsworks_ruby that referenced this issue Nov 23, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants