summaryrefslogtreecommitdiffstats
path: root/ansible/roles/gsm-tester/files
diff options
context:
space:
mode:
authorAlexander Couzens <lynxis@fe80.eu>2018-03-06 14:07:16 +0100
committerHarald Welte <laforge@gnumonks.org>2018-03-16 09:18:11 +0000
commit196402ac657f86a94b86a12b07dfeaf7d3a0a273 (patch)
tree01a6a176682f16c1f519cd0573747979860406e1 /ansible/roles/gsm-tester/files
parent07653276019511efe7e188a80c307225ac78230d (diff)
add ansible playbooks
Introduce playbooks to do: - setup-jenkins-slave - setup a usualy or special jenkins-slave - setup-gsm-tester - setup the gsm-tester Change-Id: I7007a4e6c38f73843390ec2b3b91133aff21e36a
Diffstat (limited to 'ansible/roles/gsm-tester/files')
-rw-r--r--ansible/roles/gsm-tester/files/dbus_osmo-gsm-tester.conf9
-rw-r--r--ansible/roles/gsm-tester/files/osmo-gsm-tester_setcap_net_admin.sh2
-rwxr-xr-xansible/roles/gsm-tester/files/osmo-gsm-tester_setcap_net_raw.sh3
3 files changed, 14 insertions, 0 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
new file mode 100644
index 0000000..d867833
--- /dev/null
+++ b/ansible/roles/gsm-tester/files/dbus_osmo-gsm-tester.conf
@@ -0,0 +1,9 @@
+<!-- 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/files/osmo-gsm-tester_setcap_net_admin.sh b/ansible/roles/gsm-tester/files/osmo-gsm-tester_setcap_net_admin.sh
new file mode 100644
index 0000000..60e527a
--- /dev/null
+++ b/ansible/roles/gsm-tester/files/osmo-gsm-tester_setcap_net_admin.sh
@@ -0,0 +1,2 @@
+#!/bin/sh
+/sbin/setcap cap_net_admin+ep "$1"
diff --git a/ansible/roles/gsm-tester/files/osmo-gsm-tester_setcap_net_raw.sh b/ansible/roles/gsm-tester/files/osmo-gsm-tester_setcap_net_raw.sh
new file mode 100755
index 0000000..1f3a727
--- /dev/null
+++ b/ansible/roles/gsm-tester/files/osmo-gsm-tester_setcap_net_raw.sh
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+/sbin/setcap cap_net_raw+ep "$1"