Closed maxlinc closed 10 years ago
Making ownership configurable is a good idea, but that would require a change to our configs. The less intrusive would be to detect the user/group based on the parent gems folder.
Anyone up for submitting a PR? :smiley:
This would be a nice feature to have in place but since it haven't received much attention neither we received other reports about it I'm going to close it for now. If someone else is experiencing this issue please raise your hand!
I'm using chef-solo to setup rubies via rbenv/ruby-build. It is a system-wide install with ownership set to rbenv:rbenv instead of root:root, so that users in the rbenv can install gems.
I believe a similar issue could exist for any bucket, but rbenv provides a clear example. Here's the end result:
Notice that the cache directory has different ownership than all the other directories. This is true of the symlink itself, and the files under the symlink target.
Here's the chef recipe that results in this situation:
Any ideas for a solution? Make ownership configurable? Detect the user/group to use based on the parent gems folder?