Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

server install rvm conflict with chef #244

Open
halida opened this issue May 5, 2015 · 6 comments
Open

server install rvm conflict with chef #244

halida opened this issue May 5, 2015 · 6 comments
Labels

Comments

@halida
Copy link
Contributor

halida commented May 5, 2015

I need deploy something to one of my server test with user deployer, and this user already installed rvm.
So when I run fix node:test, littlechef will use rvm environment, it will raise error about not found chef.
Solve this thing, I need run rvm reset first after using deployer user, is there any callback for this?

I'm thinking about add one config for this:

[userinfo]
run_script=init.sh

In init.sh:

if which rvm > /dev/null; then
    rvm reset
fi

Any idea?

@tobami tobami added the question label May 5, 2015
@tobami
Copy link
Owner

tobami commented May 5, 2015

That would be in line with the pre/post deploy hooks.
@thekorn any thoughts on that?

@halida
Copy link
Contributor Author

halida commented May 11, 2015

Hi, Is there any progress on this?

1 similar comment
@halida
Copy link
Contributor Author

halida commented Jun 11, 2015

Hi, Is there any progress on this?

@wilddog64
Copy link

I had same problems but I fork the 1.7.4 to create a patch for it. I was wonder if I can submit a pull request for review

@halida
Copy link
Contributor Author

halida commented Jun 15, 2015

@wilddog64 Wish your patch is generated (like support callback before chef is executed on target server)

@tobami
Copy link
Owner

tobami commented Jun 16, 2015

@wilddog64 by all means submit a pull request

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants