Tung Nguyen
Tung Nguyen

Reputation: 1924

OpsWorks/Chef: multiple versions of a cookbook are required

I am using OpsWorks. Multiple versions of build-essential cookbook are required because:

So when launching instance in OpsWorks, I get this error message:

================================================================================
Error Resolving Cookbooks for Run List:
================================================================================


Missing Cookbooks:
------------------
Could not satisfy version constraints for: build-essential

How could this conflict can be solved?

Thank you.


Update 1

I ran into this thread. The last answer suggested to use role and environment, which cannot be applied in my case because I am using OpsWorks (OpsWorks does not have Chef server to manage multiple cookbook versions, and it also does not have such "role", "environment" concepts).

Upvotes: 1

Views: 1807

Answers (1)

Charlie
Charlie

Reputation: 7349

If you are able to use an older version of the nginx cookbook (v2.4.2, about a month old), that one depends on build-essential ~> 1.4.

Also it sounds like you're using Chef-community cookbooks, It seems that OpsWorks itself has cookbooks for mysql and nginx. (unfortunately named the same as the community ones). Have you evaluated if those are solutions for your situation?

Upvotes: 2

Related Questions