Skip to content
This repository has been archived by the owner on May 6, 2024. It is now read-only.

Commit

Permalink
.rbenv is a git repo don't change permissions.
Browse files Browse the repository at this point in the history
Permissions were changed widely so that on devstack forum user
can do gem and bundle install of ruby gems.  Modifying the .rbenv
directory is not ncessary to do this and the www-data user has
sufficient permssion to use the rbenv without modifying the rbenv
repo.
  • Loading branch information
feanil committed Jul 15, 2015
1 parent cdaf347 commit 5ec828e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion playbooks/roles/local_dev/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,14 @@
user: name={{ forum_user }} groups={{ common_web_group }} append=yes
when: forum_user is defined

# Need this in order for the forum user to install and uninstall
# gems using 'bundle' or 'gem'. Can't make it 760 because that
# would break the bin directory under .gem
- name: set forum rbenv and gem permissions
file:
path={{ item }} state=directory recurse=yes mode=770
with_items:
- "{{ forum_app_dir }}/.gem"
- "{{ forum_app_dir }}/.rbenv"
when: forum_user is defined

# Create scripts to configure environment
Expand Down

0 comments on commit 5ec828e

Please sign in to comment.