user3086014
user3086014

Reputation: 4511

Should I install a separate ruby for chef

I am exploring chef. I want to know whether it is good to have a separate ruby installed for chef using RVM or we should use ruby that comes shipped with chef ??

What is the best practice.

Any help/suggestion is appreciated.

Thanks

Upvotes: 0

Views: 186

Answers (2)

sethvargo
sethvargo

Reputation: 26997

It depends on what you are doing. For running Chef, you should use the embedded Ruby. For any tasks that the Chef Client needs to complete, such as communicating with external services, you should use the embedded Ruby.

For local development, you should use the ChefDK, which includes a developer's Ruby.

Upvotes: 6

StephenKing
StephenKing

Reputation: 37600

Use the version of ruby that comes with chef for running Chef. That version is tested.

Upvotes: 5

Related Questions