zabumba
zabumba

Reputation: 12422

Install RVM with Chef on CentOS 6.5

This is what I've got in my recipe so far

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 passes fine but when running rvm-setup I get this:

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

The file is there, I can run the same command from my terminal.

Why am I getting this error, and how could I resolve this one?

Upvotes: 0

Views: 271

Answers (1)

Andrew Burns
Andrew Burns

Reputation: 14529

I also thought about trying to bake my own RVM cookbook; however after looking at the official cookbook I decided against it. It is flexible enough to either use custom recipes or to drive with node attributes.

Upvotes: 1

Related Questions