Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inconsistent behavior detecting whether MySQL needs to be installed #374

Open
robamaton opened this issue Mar 17, 2016 · 0 comments
Open

Comments

@robamaton
Copy link

Ubuntu 12.04 LTS
Chef 11.10

https://github.com/aws/opsworks-cookbooks/blob/release-chef-11.10/mysql/recipes/client.rb

I have two layers, a Rails App layer and a Delayed Job layer for background workers. I'm using RDS with the MySQL engine, but not actually attaching it to the OpsWorks stack, since I want to attach multiple stacks to a single RDS instance.

In the Rails App layer, the first line of mysql::client:
if node[:opsworks][:layers].has_key?('db-master') || (node[:opsworks][:stack][:rds_instances].any?{|rds_instance| rds_instance[:engine] == 'mysql'}) is returning true, even though there is no 'db-master' layer, and no RDS instances associated with the stack. However, instances in the Delayed Job layer (which also has the mysql::client recipe on setup) has that line return false, so I have to specify "libmysqlclient-dev" under OS Packages.

This only started recently, and before I never had to specify the OS Package separately.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant