This is commonly solved with the 'reboot' cookbook, to restart the Chef run mid to inherit the new environment.
Regards,
AJ
On 8 Jul 2010 05:35, "Christopher Bottaro" <
">
> wrote:
> Hello,
>
> I have a recipe that installs rvm and Ruby Enterprise Edition via rvm. Once
> that recipe runs, I have subsequent recipes that run and install gems. The
> problem is that they install the gems in system Ruby.
>
> For rvm to work, I need to source a shell script (which I do in
> /etc/profile.d/rvm.sh). The problem is that subsequent calls to Chef
> resources like "execute", "gem_package" or "script" don't
> run /etc/profile.d/rvm.sh before executing. How can I remedy that?
>
> Thanks for the help.
Archive powered by MHonArc 2.6.16.