aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools/testbed-setup/ansible/roles/tg/tasks
diff options
context:
space:
mode:
authorPeter Mikus <pmikus@cisco.com>2019-09-13 12:00:49 +0000
committerPeter Mikus <pmikus@cisco.com>2019-10-30 07:15:38 +0000
commit96eaabff284f154ca96ce823fee205bd9833043b (patch)
treefabdc8610502c1e415104d74cf3c2030ea9f7b6f /resources/tools/testbed-setup/ansible/roles/tg/tasks
parenta3dab28621162becb33ff71076db21a6fda35e18 (diff)
Add: Use containers for shared TG
+ Ansible + Service for auto load during restart + By default created 2 instances of Docker container + Small modification of Trex to use prefixes + DNV topology to use ssh port to connect to docker Signed-off-by: Peter Mikus <pmikus@cisco.com> Change-Id: Ibc2b2f0e509d920fc3e05d012b88abc388f5c3e7
Diffstat (limited to 'resources/tools/testbed-setup/ansible/roles/tg/tasks')
-rw-r--r--resources/tools/testbed-setup/ansible/roles/tg/tasks/main.yaml24
1 files changed, 24 insertions, 0 deletions
diff --git a/resources/tools/testbed-setup/ansible/roles/tg/tasks/main.yaml b/resources/tools/testbed-setup/ansible/roles/tg/tasks/main.yaml
index 0b32002545..a7ab90d34a 100644
--- a/resources/tools/testbed-setup/ansible/roles/tg/tasks/main.yaml
+++ b/resources/tools/testbed-setup/ansible/roles/tg/tasks/main.yaml
@@ -12,3 +12,27 @@
- name: Install TRex
include_tasks: 'trex.yaml'
tags: install-trex
+
+- name: Copy csit-initialize-docker-tg.sh
+ copy:
+ src: 'files/csit-initialize-docker-tg.sh'
+ dest: '/usr/local/bin/csit-initialize-docker-tg.sh'
+ owner: 'root'
+ group: 'root'
+ mode: '744'
+ when: docker_tg is defined
+ tags: docker-tg
+
+- name: Start csit-initialize-docker-tg.service
+ copy:
+ src: 'files/csit-initialize-docker-tg.service'
+ dest: '/etc/systemd/system/'
+ owner: 'root'
+ group: 'root'
+ mode: '644'
+ notify:
+ - 'Start csit-initialize-docker-tg.service'
+ when: docker_tg is defined
+ tags: docker-tg
+
+- meta: flush_handlers