summaryrefslogtreecommitdiffstats
path: root/ansible/roles
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2018-10-09 14:03:26 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2018-10-09 14:03:26 +0200
commit52fb2808d654d4c33bf7aac540c8c8f8b8ff28fc (patch)
treec080aa2fe2880dc00238bc3b229df768118db392 /ansible/roles
parent2958d13e2b3ab63c35c17408e7d438b7d9362a72 (diff)
ansible: Install liblimesuite-dev and setup limesdr rights in gsm-tester
Diffstat (limited to 'ansible/roles')
-rw-r--r--ansible/roles/gsm-tester/files/64-limesuite.rules5
-rw-r--r--ansible/roles/gsm-tester/tasks/main.yml6
-rw-r--r--ansible/roles/osmocom-jenkins-slave/tasks/osmocom_build_deps.yml1
3 files changed, 12 insertions, 0 deletions
diff --git a/ansible/roles/gsm-tester/files/64-limesuite.rules b/ansible/roles/gsm-tester/files/64-limesuite.rules
new file mode 100644
index 0000000..2b46d86
--- /dev/null
+++ b/ansible/roles/gsm-tester/files/64-limesuite.rules
@@ -0,0 +1,5 @@
+SUBSYSTEM=="usb", ATTR{idVendor}=="04b4", ATTR{idProduct}=="8613", SYMLINK+="stream-%k", TAG+="uaccess", GROUP="osmo-gsm-tester", MODE="660"
+SUBSYSTEM=="usb", ATTR{idVendor}=="04b4", ATTR{idProduct}=="00f1", SYMLINK+="stream-%k", TAG+="uaccess", GROUP="osmo-gsm-tester", MODE="660"
+SUBSYSTEM=="usb", ATTR{idVendor}=="0403", ATTR{idProduct}=="601f", SYMLINK+="stream-%k", TAG+="uaccess", GROUP="osmo-gsm-tester", MODE="660"
+SUBSYSTEM=="usb", ATTR{idVendor}=="1d50", ATTR{idProduct}=="6108", SYMLINK+="stream-%k", TAG+="uaccess", GROUP="osmo-gsm-tester", MODE="660"
+SUBSYSTEM=="xillybus", MODE="666", OPTIONS="last_rule"
diff --git a/ansible/roles/gsm-tester/tasks/main.yml b/ansible/roles/gsm-tester/tasks/main.yml
index 954953d..61db8e9 100644
--- a/ansible/roles/gsm-tester/tasks/main.yml
+++ b/ansible/roles/gsm-tester/tasks/main.yml
@@ -251,3 +251,9 @@
src: 60-sispmctl.rules
dest: /etc/udev/rules.d/
notify: restart udev
+
+- name: allow group osmo-gsm-tester to access LMS devices
+ copy:
+ src: 64-limesuite.rules
+ dest: /etc/udev/rules.d/
+ notify: restart udev
diff --git a/ansible/roles/osmocom-jenkins-slave/tasks/osmocom_build_deps.yml b/ansible/roles/osmocom-jenkins-slave/tasks/osmocom_build_deps.yml
index 71bf9f1..f6c256d 100644
--- a/ansible/roles/osmocom-jenkins-slave/tasks/osmocom_build_deps.yml
+++ b/ansible/roles/osmocom-jenkins-slave/tasks/osmocom_build_deps.yml
@@ -66,6 +66,7 @@
- libgnutls28-dev
- libgps-dev
- libgsm1-dev
+ - liblimesuite-dev
- libmnl-dev
- libncurses5-dev
- libortp-dev