MarcoAny help would be very appreciated :-)and would like to know if anyboby else has been able to manage such a scenario.Unfortunately I cannot manage the whole installation working with rvm (even using bleeding edge version from master).I'm using chef-zero (local_mode true) to test it, in order to avoid any chef-solo impact and I'm currently using chef-11.8.2 omnibus installation on CentOS6.5_x64.Hi Chefs,I'm trying to install a custom rails application with chef, using application_ruby cookbook with passenger_apache2 sub-resource and chef-rvm (rvm) cookbook.
By manually applying https://github.com/poise/application_ruby/pull/48I managed to achieve the whole installation without using rvm, but in this way installation is done by embedded (omnibus) ruby and I would like to avoid it in order to be able to control ruby version my application will run with.
This is the error running with params-only hash to pass attribute to passenger_apache2:
* First run still uses embedded ruby:
https://gist.github.com/marbe/8974157* Second run (after re-login to set env variable after rvm install) uses rvm:
https://gist.github.com/marbe/8974173This is the errror with explicit override of root_path (third run on the same VM instance):
override['passenger']['root_path'] = '/usr/local/rvm/gems/ruby-2.1.0'
https://gist.github.com/marbe/8974200
This is the errror with explicit override of root_path (first run on new VM instance):
https://gist.github.com/marbe/8974359
Again second run (after re-login to set env variable after rvm install) uses rvm:
https://gist.github.com/marbe/8974388I only found this thread googling around:
http://lists.opscode.com/sympa/arc/chef/2013-03/msg00210.html
--
Ing. Marco Betti
RHCE RHEL4 id 804006512121056
Archive powered by MHonArc 2.6.16.