osmith has uploaded this change for review. (
https://gerrit.osmocom.org/c/osmo-ci/+/41863?usp=email )
Change subject: ansible: allow jenkins users to set rtprio 30
......................................................................
ansible: allow jenkins users to set rtprio 30
Create an /etc/security/limits.d file to allow the jenkins user to set
rtprio 30. This is required for running the ttcn3 bts testsuite through
testenv, as (unlike the previous approach with docker containers)
osmo-bts-trx runs without root rights there.
Change-Id: Id79851b3e3a47d19773aa9bba134b9bf99dbecbb
---
M ansible/roles/osmocom-jenkins-slave/tasks/ttcn3-slave.yml
1 file changed, 7 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-ci refs/changes/63/41863/1
diff --git a/ansible/roles/osmocom-jenkins-slave/tasks/ttcn3-slave.yml
b/ansible/roles/osmocom-jenkins-slave/tasks/ttcn3-slave.yml
index 4237073..bc9e539 100644
--- a/ansible/roles/osmocom-jenkins-slave/tasks/ttcn3-slave.yml
+++ b/ansible/roles/osmocom-jenkins-slave/tasks/ttcn3-slave.yml
@@ -43,3 +43,10 @@
- libosmocore-utils
update_cache: yes
cache_valid_time: 3600
+
+# Running bts ttcn3 tests as user requires them to be able to set rtprio
+- name: allow jenkins user to set rtprio
+ ansible.builtin.lineinfile:
+ path: "/etc/security/limits.d/{{ jenkins_user }}_allow-rtprio.conf"
+ line: "{{ jenkins_user }} - rtprio 30"
+ create: yes
--
To view, visit https://gerrit.osmocom.org/c/osmo-ci/+/41863?usp=email
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: newchange
Gerrit-Project: osmo-ci
Gerrit-Branch: master
Gerrit-Change-Id: Id79851b3e3a47d19773aa9bba134b9bf99dbecbb
Gerrit-Change-Number: 41863
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <[email protected]>