summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2020-04-10 17:35:17 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2020-04-10 17:35:20 +0200
commitf55a3c67be93bdfb483a120954f89798ef7d8a04 (patch)
tree7e9db593eb89dbe5fc387e1430c55f17ef990e3b
parent39a66cc7f9c4e9467e8ae03c53a65b3e30a1ea5d (diff)
ansible: gsm-tester: Intall dbus policy file from git repo
Since osmo-gsm-tester.git I17ee94b175deb88faff71e7788c482093693f8a8, the file is available in the repository, so let's simply install it from there. Change-Id: Icb4827c4126c997633e23e4d778ff9b1a1836322
-rw-r--r--ansible/roles/gsm-tester/files/dbus_osmo-gsm-tester.conf9
-rw-r--r--ansible/roles/gsm-tester/tasks/main.yml17
2 files changed, 9 insertions, 17 deletions
diff --git a/ansible/roles/gsm-tester/files/dbus_osmo-gsm-tester.conf b/ansible/roles/gsm-tester/files/dbus_osmo-gsm-tester.conf
deleted file mode 100644
index d867833..0000000
--- a/ansible/roles/gsm-tester/files/dbus_osmo-gsm-tester.conf
+++ /dev/null
@@ -1,9 +0,0 @@
-<!-- Additional rules for the osmo-gsm-tester to access org.ofono from user
-land -->
-<!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
-"http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
-<busconfig>
-<policy group="osmo-gsm-tester">
-<allow send_destination="org.ofono"/>
-</policy>
-</busconfig>
diff --git a/ansible/roles/gsm-tester/tasks/main.yml b/ansible/roles/gsm-tester/tasks/main.yml
index 0109d1b..6258fde 100644
--- a/ansible/roles/gsm-tester/tasks/main.yml
+++ b/ansible/roles/gsm-tester/tasks/main.yml
@@ -318,14 +318,6 @@
tags:
- osmo-gsm-tester-main
-- name: allow osmo-gsm-tester to access ofono
- copy:
- src: dbus_osmo-gsm-tester.conf
- dest: /etc/dbus-1/system.d/osmo-gsm-tester.conf
- tags:
- - ofono
- - modem
-
- name: ensure tcpdump can be called by osmo-gsm-tester
file:
path: /usr/sbin/tcpdump
@@ -399,6 +391,15 @@
tags:
- osmo-gsm-tester-proc
+- name: Install dbus policy file to allow osmo-gsm-tester group to access ofono
+ shell: |
+ cp utils/dbus-1/* /etc/dbus-1/system.d/
+ args:
+ chdir: /root/osmo-gsm-tester
+ tags:
+ - ofono
+ - modem
+
- name: logrotate limit filesizes to 10M
copy:
content: "maxsize 10M"