Question

I have some doubts about a specific attribute of bluepill cookbook.

default["bluepill"]["bin"] = "#{node['languages']['ruby']['bin_dir']}/bluepill

Where and when is defined this value?

I want to use the bluepill as a system's gem and not as a chef's gem, What values or options I have for this attribute:

default["bluepill"]["bin"] = ?????
Was it helpful?

Solution

That value comes from Ohai, which is a tool used by Chef to get the JSON representation of important system information (like where a Ruby lives or what users are present on a system).

That attribute may be changed to any value, but it must point to a Ruby that exists on the system. Note: that attribute does not install Ruby - it just tells Bluepill where to find Ruby.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top