]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
slave.yml: Add jenkins-build user to jenkins-build group 1366/head
authorDavid Galloway <dgallowa@redhat.com>
Thu, 15 Aug 2019 16:41:03 +0000 (12:41 -0400)
committerDavid Galloway <dgallowa@redhat.com>
Thu, 15 Aug 2019 16:57:50 +0000 (12:57 -0400)
On ubuntu, at least, with the addition of the "create a jenkins-build group" task, the creation of the user wasn't adding the user to the group.  I discovered this by seeing a docker command fail after the socket was 'chgrp'ed to jenkins-build

```
+ sudo chgrp jenkins-build /var/run/docker.sock
+ do_clean
+ make clean.all
Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock
```

I logged in to the slave and confirmed this was the case.

Signed-off-by: David Galloway <dgallowa@redhat.com>
ansible/slave.yml

index 837a82864ac2502ed283f6027afd6bac9c82da41..105042028c81456bcccdcf6c1c45bfc7205999ab 100644 (file)
@@ -60,6 +60,7 @@
     - name: "create a {{ jenkins_user }} user"
       user:
         name: "{{ jenkins_user }}"
+        group: "{{ jenkins_user }}"
         state: present
         comment: "Jenkins Build Slave User"