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

Cookbook not compatible with default opsworks chef 12 #242

Closed
cratz opened this issue Jun 26, 2020 · 4 comments
Closed

Cookbook not compatible with default opsworks chef 12 #242

cratz opened this issue Jun 26, 2020 · 4 comments

Comments

@cratz
Copy link

cratz commented Jun 26, 2020

Expected Behavior

Cookbook is compatible with chef 12 (used by OpsWorks)

Actual Behavior

deploy_resource cookbook requires chef >= 13.0
Using chef-version will not help since it already fails on checking metadata.rb

Custom JSON

{
  "chef-version": 16
}

Chef log including error

ERROR: Cookbook 'deploy_resource' version '1.0.3' depends on chef version [">= 13.0"], but the running chef version is 12.18.31

@aka47
Copy link
Contributor

aka47 commented Jul 20, 2020

I ran into the same problem a week ago, suddenly starting new instances does not work anymore. Until now I did not find a way to mitigate this problem or workaround it.
ANY HELP or ideas would be so great - it kills the whole deployment and break setup of our rails-instances.

UPDATE: Downgrading to v1.15.0 did fix the problem for now - but not really the optimal solution

@ajgon
Copy link
Owner

ajgon commented Jul 22, 2020

I created a new branch which should do the trick: fix/include-deploy-resource. Can you please take a look if it works for you? I tested it both with Chef 12 and 14 and looks like it's working.

@aka47
Copy link
Contributor

aka47 commented Aug 2, 2020

I tested it and it fixes the problem, yes. Thanks a lot @ajgon for your quick response.
( I talked to @cratz - he did move away from opsworks in the project he was having this problem. )

@ajgon ajgon closed this as completed in 4f6d6fd Aug 2, 2020
@cratz
Copy link
Author

cratz commented Aug 4, 2020

@ajgon Thanks a lot for the fix. Maybe I will give it a try later again.

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