From bee47d38e8602d568a2ea06fbac2b755c65b073c Mon Sep 17 00:00:00 2001 From: Christine Lytwynec Date: Tue, 14 Jul 2015 14:35:32 -0400 Subject: [PATCH 1/3] update ec2 plugin version on testeng jenkins --- playbooks/roles/jenkins_master/defaults/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/playbooks/roles/jenkins_master/defaults/main.yml b/playbooks/roles/jenkins_master/defaults/main.yml index 5cef7b6a6f3..b9c35a5804a 100644 --- a/playbooks/roles/jenkins_master/defaults/main.yml +++ b/playbooks/roles/jenkins_master/defaults/main.yml @@ -18,7 +18,7 @@ jenkins_plugins: - { name: "copy-to-slave", version: "1.4.3" } - { name: "credentials", version: "1.8.3" } - { name: "dashboard-view", version: "2.9.1" } - - { name: "ec2", version: "1.23" } + - { name: "ec2", version: "1.28" } - { name: "github", version: "1.8" } - { name: "github-api", version: "1.44" } - { name: "github-oauth", version: "0.14" } From 5ec828e52ce140c109409dc8c467b0ead8fbb12a Mon Sep 17 00:00:00 2001 From: Feanil Patel Date: Wed, 15 Jul 2015 15:32:36 -0400 Subject: [PATCH 2/3] .rbenv is a git repo don't change permissions. 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. --- playbooks/roles/local_dev/tasks/main.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/playbooks/roles/local_dev/tasks/main.yml b/playbooks/roles/local_dev/tasks/main.yml index 35d3d226797..4b291bb957c 100644 --- a/playbooks/roles/local_dev/tasks/main.yml +++ b/playbooks/roles/local_dev/tasks/main.yml @@ -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 From 8321ab72931c8a485e9524705aeea920d6b31043 Mon Sep 17 00:00:00 2001 From: Feanil Patel Date: Wed, 15 Jul 2015 16:50:43 -0400 Subject: [PATCH 3/3] Use symbolic mode instead of explicit. Since we don't want to break other permissions we just want to give the group read/write permission. --- playbooks/roles/local_dev/tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/playbooks/roles/local_dev/tasks/main.yml b/playbooks/roles/local_dev/tasks/main.yml index 4b291bb957c..6856782a22d 100644 --- a/playbooks/roles/local_dev/tasks/main.yml +++ b/playbooks/roles/local_dev/tasks/main.yml @@ -21,7 +21,7 @@ # would break the bin directory under .gem - name: set forum rbenv and gem permissions file: - path={{ item }} state=directory recurse=yes mode=770 + path={{ item }} state=directory recurse=yes mode="g+rw" with_items: - "{{ forum_app_dir }}/.gem" when: forum_user is defined