You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have been running for years chef cookbooks on Ubuntu
System Ubuntu 16.04,
Cookbooks : database, mariad, mysql2_chef_gem
Im recently since upgrades to Maria 10.2 and usual OS changes, my chef system has started to fail.
I removed the pre-complied gems, but this didnt help.
I have also recently upgraded to mysql2_chef_gem 2.0.1.
There is a dependency in 2.0.1 to include mysql ( but Im using Mariadb), and this causes the compilation to fail.. here is an extract..
` - mariadb (1.5.1)
unix_bin (0.2.9)
mysql (8.4.0)
mysql2_chef_gem (2.0.1)
Installing Cookbook Gems:
Compiling Cookbooks...
================================================================================
Recipe Compile Error in /var/chef/cache/cookbooks/mysql/libraries/provider_mysql_client.rb
1: require 'chef/provider/lwrp_base'
2: require_relative 'helpers'
3:
4: class Chef
5: class Provider
6: class MysqlClient < Chef::Provider::LWRPBase
7>> include MysqlCookbook::Helpers
8: provides :mysql_client if defined?(provides)
9:
10: use_inline_resources if defined?(use_inline_resources)
11:
12: def whyrun_supported?
13: true
14: end
15:
16: action :create do
Platform:
x86_64-linux`
I have managed to fix this, by removing the mysql dependency in the mysql2_chef_gem on mysql, so it is not included, but clearly this is a fudge..
Any experience's out there clearly welcome.
BTW : I see that 'database' is now depreciated.. so...what _is then the right way to do a 'mysql_database' to set up a database ? it seems ( with mysql2_chef_gem ) perfer a critical function/helper...
confused of England.
;-)
The text was updated successfully, but these errors were encountered:
Hi,
Apologises if Im asking a stupid queston.
I have been running for years chef cookbooks on Ubuntu
System Ubuntu 16.04,
Cookbooks : database, mariad, mysql2_chef_gem
Im recently since upgrades to Maria 10.2 and usual OS changes, my chef system has started to fail.
I removed the pre-complied gems, but this didnt help.
I have also recently upgraded to mysql2_chef_gem 2.0.1.
There is a dependency in 2.0.1 to include mysql ( but Im using Mariadb), and this causes the compilation to fail.. here is an extract..
` - mariadb (1.5.1)
Installing Cookbook Gems:
Compiling Cookbooks...
================================================================================
Recipe Compile Error in /var/chef/cache/cookbooks/mysql/libraries/provider_mysql_client.rb
NameError
uninitialized constant MysqlCookbook::Helpers
Cookbook Trace:
/var/chef/cache/cookbooks/mysql/libraries/provider_mysql_client.rb:7:in
<class:MysqlClient>' /var/chef/cache/cookbooks/mysql/libraries/provider_mysql_client.rb:6:in
class:Provider'/var/chef/cache/cookbooks/mysql/libraries/provider_mysql_client.rb:5:in
<class:Chef>' /var/chef/cache/cookbooks/mysql/libraries/provider_mysql_client.rb:4:in
<top (required)>'Relevant File Content:
/var/chef/cache/cookbooks/mysql/libraries/provider_mysql_client.rb:
1: require 'chef/provider/lwrp_base'
2: require_relative 'helpers'
3:
4: class Chef
5: class Provider
6: class MysqlClient < Chef::Provider::LWRPBase
7>> include MysqlCookbook::Helpers
8: provides :mysql_client if defined?(provides)
9:
10: use_inline_resources if defined?(use_inline_resources)
11:
12: def whyrun_supported?
13: true
14: end
15:
16: action :create do
Platform:
x86_64-linux`
I have managed to fix this, by removing the mysql dependency in the mysql2_chef_gem on mysql, so it is not included, but clearly this is a fudge..
Any experience's out there clearly welcome.
BTW : I see that 'database' is now depreciated.. so...what _is then the right way to do a 'mysql_database' to set up a database ? it seems ( with mysql2_chef_gem ) perfer a critical function/helper...
confused of England.
;-)
The text was updated successfully, but these errors were encountered: