Change in osmo-ci[master]: ansible: explicitly give jenkins user UID=1000

osmith gerrit-no-reply at lists.osmocom.org
Tue Mar 9 10:36:46 UTC 2021


osmith has submitted this change. ( https://gerrit.osmocom.org/c/osmo-ci/+/23274 )

Change subject: ansible: explicitly give jenkins user UID=1000
......................................................................

ansible: explicitly give jenkins user UID=1000

docker-playground.git assumes that its containers run as UID=1000,
otherwise some will fail with errors like:

  + osmo-clean-workspace.sh
  + chmod -R +w .
  chmod: changing permissions of '.': Operation not permitted

Make this assumption explicit with "uid: 1000" in "add user jenkins".
This causes ansible to verify that the UID is really 1000, and if it is
not, it changes the UID. A follow-up patch will remove Raspbian's
default user of the same UID.

Related: OS#5055
Change-Id: I6efc9e74049e179d2f86655217195e76789ba77d
---
M ansible/roles/osmocom-jenkins-slave/tasks/main.yml
1 file changed, 1 insertion(+), 0 deletions(-)

Approvals:
  pespin: Looks good to me, but someone else must approve
  laforge: Looks good to me, approved
  osmith: Verified



diff --git a/ansible/roles/osmocom-jenkins-slave/tasks/main.yml b/ansible/roles/osmocom-jenkins-slave/tasks/main.yml
index b7fa2d3..3a5cafa 100644
--- a/ansible/roles/osmocom-jenkins-slave/tasks/main.yml
+++ b/ansible/roles/osmocom-jenkins-slave/tasks/main.yml
@@ -11,6 +11,7 @@
     ssh_key_bits: 4096
     ssh_key_type: rsa
     shell: /bin/bash
+    uid: 1000
 
 - name: setup jenkins ssh key
   authorized_key:

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-ci/+/23274
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ci
Gerrit-Branch: master
Gerrit-Change-Id: I6efc9e74049e179d2f86655217195e76789ba77d
Gerrit-Change-Number: 23274
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith at sysmocom.de>
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-Reviewer: osmith <osmith at sysmocom.de>
Gerrit-Reviewer: pespin <pespin at sysmocom.de>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210309/83797c6b/attachment.htm>


More information about the gerrit-log mailing list