diff options
author | Peter Mikus <pmikus@cisco.com> | 2019-09-13 12:00:49 +0000 |
---|---|---|
committer | Peter Mikus <pmikus@cisco.com> | 2019-10-30 07:40:07 +0000 |
commit | 62de349145b7868b80eba5577e64e7374e397fe1 (patch) | |
tree | 22fd1589f8da5f6e658e39147cac43ff319b1ec5 /resources/tools/testbed-setup/ansible/roles/tg/tasks/main.yaml | |
parent | 5e89137d55a693025a6206ad4c6f6dedef167e3e (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
(cherry picked from commit 96eaabff284f154ca96ce823fee205bd9833043b)
(cherry picked from commit 744f1b25218b2a72be351056ff68af5f6a899bca)
Diffstat (limited to 'resources/tools/testbed-setup/ansible/roles/tg/tasks/main.yaml')
-rw-r--r-- | resources/tools/testbed-setup/ansible/roles/tg/tasks/main.yaml | 28 |
1 files changed, 28 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 24f433f9b9..62629d7a51 100644 --- a/resources/tools/testbed-setup/ansible/roles/tg/tasks/main.yaml +++ b/resources/tools/testbed-setup/ansible/roles/tg/tasks/main.yaml @@ -7,3 +7,31 @@ - name: Install WRK include_tasks: 'wrk.yaml' tags: install-wrk + +- 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 |