aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools/testbed-setup
diff options
context:
space:
mode:
authorXiaolong Jiang <xiaolongx.jiang@intel.com>2020-07-22 17:28:27 +0800
committerPeter Mikus <pmikus@cisco.com>2020-07-28 08:49:47 +0000
commit59b686ec3cdc4863d7a4ddc11c684bfb7df26a8e (patch)
tree99a5204b4d4205ded5adbbcdb926f37c6377a407 /resources/tools/testbed-setup
parent537e389b1ae4a3a7a329880bbe89d240d8f956fc (diff)
vsap: install ab using ansible
Signed-off-by: Xiaolong Jiang <xiaolongx.jiang@intel.com> Change-Id: I275ad9dccc02e6b1f1c791fabf8896fb03acb3fb
Diffstat (limited to 'resources/tools/testbed-setup')
-rw-r--r--resources/tools/testbed-setup/ansible/roles/ab/defaults/main.yaml17
-rw-r--r--resources/tools/testbed-setup/ansible/roles/ab/tasks/main.yaml9
-rw-r--r--resources/tools/testbed-setup/ansible/tg.yaml2
3 files changed, 28 insertions, 0 deletions
diff --git a/resources/tools/testbed-setup/ansible/roles/ab/defaults/main.yaml b/resources/tools/testbed-setup/ansible/roles/ab/defaults/main.yaml
new file mode 100644
index 0000000000..0609b06855
--- /dev/null
+++ b/resources/tools/testbed-setup/ansible/roles/ab/defaults/main.yaml
@@ -0,0 +1,17 @@
+---
+# file: roles/wrk/defaults/main.yaml
+
+packages: "{{ packages_base + packages_by_distro[ansible_distribution | lower] + packages_by_arch[ansible_machine] }}"
+
+packages_base:
+ - []
+
+packages_by_distro:
+ ubuntu:
+ - "apache2-utils"
+
+packages_by_arch:
+ aarch64:
+ - []
+ x86_64:
+ - []
diff --git a/resources/tools/testbed-setup/ansible/roles/ab/tasks/main.yaml b/resources/tools/testbed-setup/ansible/roles/ab/tasks/main.yaml
new file mode 100644
index 0000000000..9153198cfb
--- /dev/null
+++ b/resources/tools/testbed-setup/ansible/roles/ab/tasks/main.yaml
@@ -0,0 +1,9 @@
+---
+# file: roles/ab/tasks/main.yaml
+
+- name: Install Apache ab tools
+ package:
+ name: "{{ packages | flatten(levels=1) }}"
+ state: present
+ update_cache: true
+ tags: install-ab
diff --git a/resources/tools/testbed-setup/ansible/tg.yaml b/resources/tools/testbed-setup/ansible/tg.yaml
index e6c5b4b9db..00ecaefe01 100644
--- a/resources/tools/testbed-setup/ansible/tg.yaml
+++ b/resources/tools/testbed-setup/ansible/tg.yaml
@@ -28,3 +28,5 @@
tags: cleanup
- role: calibration
tags: calibration
+ - role: ab
+ tags: ab