Change in osmo-ci[master]: WIP

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

pespin gerrit-no-reply at lists.osmocom.org
Mon Dec 20 10:39:01 UTC 2021


pespin has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ci/+/26642 )


Change subject: WIP
......................................................................

WIP

Change-Id: I4e004958e96f90589a97396b71ac69cdf2a1d900
---
M ansible/roles/osmocom-jenkins-slave/tasks/generic-slave.yml
1 file changed, 17 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-ci refs/changes/42/26642/1

diff --git a/ansible/roles/osmocom-jenkins-slave/tasks/generic-slave.yml b/ansible/roles/osmocom-jenkins-slave/tasks/generic-slave.yml
index 6c50754..157871b 100644
--- a/ansible/roles/osmocom-jenkins-slave/tasks/generic-slave.yml
+++ b/ansible/roles/osmocom-jenkins-slave/tasks/generic-slave.yml
@@ -13,3 +13,20 @@
     dest: "/home/{{ jenkins_user }}/bin"
     state: link
     force: yes
+
+- name: add local user directoy PATH to incoming ssh connections
+  copy:
+    content: "PATH=$PATH:/home/{{ jenkins_user }}/bin\n"
+    dest: /home/{{ jenkins_user }}/.ssh/environment
+
+- name: enable PermitUserEnvironment in sshd_config
+  replace:
+    path: /etc/ssh/sshd_config
+    regexp: '^#PermitUserEnvironment no$'
+    replace: 'PermitUserEnvironment yes'
+    validate: 'sshd -t -f %s'
+
+- name: reload sshd
+  service:
+    name: sshd
+    state: reloaded

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

Gerrit-Project: osmo-ci
Gerrit-Branch: master
Gerrit-Change-Id: I4e004958e96f90589a97396b71ac69cdf2a1d900
Gerrit-Change-Number: 26642
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20211220/7e01a86a/attachment.htm>


More information about the gerrit-log mailing list