]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ansible: Enforce rights on /home/jenkins-build 394/head
authorErwan Velu <erwan@redhat.com>
Mon, 23 May 2016 18:21:55 +0000 (20:21 +0200)
committerErwan Velu <erwan@redhat.com>
Mon, 23 May 2016 18:33:38 +0000 (20:33 +0200)
On a fresh new image, the /home/jenkins-build relies to root.root making ccache
failing at creating a file here.

That means that anything trying to write a file in the home dir will fail.

This patch simply enfore the user/group of the home dir

ansible/slave.yml

index 8e78ffd9e8f9ce8819da44f5f8ac449a3f6748fc..7b7dfbad4eec18ac2b60723cb62fd6d111d8e534 100644 (file)
@@ -34,8 +34,8 @@
     - name: ensure the build dir exists
       file: path=/home/{{ jenkins_user }}/build state=directory owner={{ jenkins_user }}
 
-    - name: ensure the build dir has the right owner permissions
-      file: path=/home/{{ jenkins_user }}/build state=directory owner={{ jenkins_user }}
+    - name: ensure the home dir has the right owner permissions
+      file: path=/home/{{ jenkins_user }} state=directory owner={{ jenkins_user }} group={{ jenkins_user }} recurse=yes
 
     - name: Install RPM requirements
       sudo: yes