在CentOS 6.5上使用Chef安装RVM

时间:2014-05-17 23:58:38

标签: centos rvm chef

这是我到目前为止在我的食谱中得到的

execute "rvm-install" do
  command "curl -L get.rvm.io | bash -s stable"
  action :run
end

execute "rvm-setup" do
  command "source /etc/profile.d/rvm.sh"
  action :run
end

rvm-install传递正常,但在运行rvm-setup时我得到了这个:

Errno::ENOENT
-------------
No such file or directory - source /etc/profile.d/rvm.sh

文件在那里,我可以从终端运行相同的命令。

为什么我会收到此错误,我该如何解决此错误?

1 个答案:

答案 0 :(得分:1)

我还想过尝试烘烤自己的RVM食谱;但在看了official cookbook之后,我决定反对它。它足够灵活,可以使用自定义配方或使用节点属性进行驱动。