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:15:38 +0000 |
commit | 96eaabff284f154ca96ce823fee205bd9833043b (patch) | |
tree | fabdc8610502c1e415104d74cf3c2030ea9f7b6f /resources/tools/testbed-setup/ansible/roles/tg/tasks | |
parent | a3dab28621162becb33ff71076db21a6fda35e18 (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.yaml | 24 |
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 |