How to handle different Ruby version requirements between chef 10.28.0 and ohai 8.0.1

I am trying to create a server on rackspace using Chef 10.28.0 by creating the same config I created three times earlier without any changes. The only difference is that the chef installed ohai 7.4.0 on previous launches, and this time he installs ohai 8.0.1.

The problem is that chef 10.28.0 installs ruby ​​1.9.3 whereas ohai 8.0.1 requires ruby ​​2.0.0 or higher. From my googling I found that chef 10 supports ruby ​​2.0 but installs ruby ​​1.9 by default. Is there a way to get Chef 10 to install ruby ​​2.0 instead? If not, is there a way to get 10 chef to install ohai 7.4 instead of 8.0?

Thanks in advance.

+3


source to share


2 answers


Please use the omnibus installer packages. These include Ruby, Chef, Ohai, and all other dependencies in a running configuration. You can download older versions of omnibus installers from the download page :



Or you can use the parameter -v

for bootstrap scripts.

+2


source


The answer was in boot scripts. We use custom bootstrap scripts and all versions for rubies, chefs and ohai are there.



+1


source







All Articles