- From: Roberto Aloi <
>
- To:
- Subject: [chef] Problems using the MySQL recipe
- Date: Mon, 23 Jan 2012 09:15:53 +0100
Hi all,
Using the MySQL recipe from Opscode with Vagrant 0.9.2 I get the
following error:
...
NameError: wrong constant name DebianBeforeSqueeze?
/opt/ruby/lib/ruby/gems/1.8/gems/chef-0.10.2/bin/../lib/chef/mixin/recipe_definition_dsl_core.rb:56:in
`const_defined?'
/opt/ruby/lib/ruby/gems/1.8/gems/chef-0.10.2/bin/../lib/chef/mixin/recipe_definition_dsl_core.rb:56:in
`method_missing'
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/mysql/recipes/client.rb:26:in
`from_file'
...
The problematic bit seems to be:
if debian_before_squeeze? || ubuntu_before_lucid?
%w{mysql-client libmysqlclient15-dev}
else
%w{mysql-client libmysqlclient-dev}
end
In an helper file the following definition is present:
def debian_before_squeeze?
platform?("debian") && (node.platform_version.to_f < 6.0)
end
Given I'm using a Lucid 64 as an image, I simply changed the if block into:
%w{mysql-client libmysqlclient-dev}
Which made 'vagrant up' succeed. Still, it would be nice to understand
the reason of the error. Am I the only one facing this problem?
Cheers,
Roberto
- [chef] Problems using the MySQL recipe, Roberto Aloi, 01/23/2012
Archive powered by MHonArc 2.6.16.