You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using both the rbenv and pyenv cookbooks together and installing python and ruby versions for the same user, the resources from the 2nd cookbook do not work. This is because the same internal run_state attribute is used for tracking the root_path in both cookbooks.
🥞 Cookbook version
3.2.0
👩🍳 Chef-Infra Version
14.13.11
🎩 Platform details
RHEL7
Steps To Reproduce
Steps to reproduce the behavior:
Write cookbook that creates a user and installs a ruby and python version for that user:
So this comes down to us doing things wrong in both cookbooks (We should be namespacing the run state to be something like: node.run_state['sous-chefs']['cookbook_name']['root_path'])
Is this something you could alter on a PR for us, or would you rather I do it on both cookbooks?
👻 Brief Description
This is a companion issue to this rbenv issue: sous-chefs/ruby_rbenv#285
When using both the rbenv and pyenv cookbooks together and installing python and ruby versions for the same user, the resources from the 2nd cookbook do not work. This is because the same internal run_state attribute is used for tracking the root_path in both cookbooks.
🥞 Cookbook version
3.2.0
👩🍳 Chef-Infra Version
14.13.11
🎩 Platform details
RHEL7
Steps To Reproduce
Steps to reproduce the behavior:
🚓 Expected behavior
I expect that both the ruby and python versions are installed with no error.
➕ Additional context
I can work around the problem with a ruby block in between the pyenv and rbenv resources:
The text was updated successfully, but these errors were encountered: