Chef infra 节点配置上的Chef教程错误[无法加载此类文件--mysql2]
这就是奇怪的部分。我正在使用Chef infra 节点配置上的Chef教程错误[无法加载此类文件--mysql2],chef-infra,test-kitchen,Chef Infra,Test Kitchen,这就是奇怪的部分。我正在使用ubuntu-14.04平台进行测试厨房设置,我也在使用bento/ubuntu-14.04进行我的流浪节点 他们应该是一样的,对吗?我基本上是在学习厨师教程,kitchen通过得很好;但是当我使用ssh localhost--ssh端口2222'sudo chef client'等部署到节点时,它会停止以下操作: localhost Recipe: awesome_customers_ubuntu::database localhost * mysql_data
ubuntu-14.04
平台进行测试厨房
设置,我也在使用bento/ubuntu-14.04
进行我的流浪节点
他们应该是一样的,对吗?我基本上是在学习厨师教程,kitchen
通过得很好;但是当我使用ssh localhost--ssh端口2222'sudo chef client'等部署到节点时,它会停止以下操作:
localhost Recipe: awesome_customers_ubuntu::database
localhost * mysql_database[my_company] action createIgnoring mysql2-0.3.17 because its extensions are not built. Try: gem pristine mysql2 --version 0.3.17
localhost
localhost
localhost ================================================================================
localhost Error executing action `create` on resource 'mysql_database[my_company]'
localhost ================================================================================
localhost
localhost LoadError
localhost ---------
localhost cannot load such file -- mysql2
所以我有两个问题
在调用mysql\u数据库之前,需要先安装mysql2\u chef\u gem
mysql2_chef_gem "default" do
gem_version "0.4.4"
action :install
end
不知怎的,TK节点已经安装了它。在调用mysql\u数据库之前,需要先安装mysql2\u chef\u gem
mysql2_chef_gem "default" do
gem_version "0.4.4"
action :install
end
不知何故,您的TK节点已经安装了它。我通过清除所有内容并重新安装
berks来解决它。
。不知何故,出现了一些问题,命令返回了一个ComunnitySiteError。今天早些时候,社区站点发生了一次生产中断,可能与您所做的任何事情都无关:)我通过清除所有内容并重新安装berks
,解决了这个问题。不知怎的,出现了一些问题,命令返回了一个ComunnitySiteError。今天早些时候,社区站点发生了生产中断,可能与您所做的任何事情都无关:)