opscode-cookbooks/mysql — pull request #192 by fschwiet (2014-05-20 01:42:25+00:00)
Title: recipes/server.rb should honor parameter node['mysql']['version']

I've been using the mysql cookbook from vagrant, but the version parameter was not taking affect. After adding a test to make sure recent changes to account for ubuntu 14.04 were working (the tests passed), I found the issue could be fixed in server.rb.

I'm pretty new to chef, vagrant, and ruby, so maybe I'm doing something wrong. But this is how I was invoking the cookbook from vagrant:

vm.provision :chef_solo do |chef|
chef.cookbooks_path = "cookbooks"
chef.add_recipe "mysql::server"

chef.json = {
:mysql => {

server_root_password: rootPassword,

version: '5.6',
port: '3306',
data_dir: '/data-mysql',
allow_remote_root: true,
remove_anonymous_Users: true,
remove_test_database: true
}
}
end

Before the change to server.rb, I was getting MySQL version 5.5. After the change I get 5.6 as expected.