Merge "Concurrency testcases to be configured over cli"
[yardstick.git] / ansible / ubuntu_server_cloudimg_modify_samplevnfs.yml
1 # Copyright (c) 2017 Intel Corporation.
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 #
7 #      http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14 ---
15 - hosts: chroot_image
16   connection: chroot
17   vars:
18     clone_dir: /tmp/yardstick-clone
19   vars_files:
20     - roles/download_dpdk/defaults/main.yml
21
22   pre_tasks:
23     - debug:
24         msg: "chrooted in {{ inventory_hostname }}"
25     - debug:
26         var: proxy_env
27         verbosity: 2
28
29   roles:
30     - reset_resolv_conf
31     - add_custom_repos
32     - role: set_package_installer_proxy
33       when: proxy_env is defined and proxy_env
34 #     can't update grub in chroot/docker
35     - enable_hugepages_on_boot
36     # needed for collectd plugins
37     - increase_open_file_limits
38     - modify_cloud_config
39     - install_image_dependencies
40     - download_trex
41     - install_trex
42     - download_civetweb
43     - install_civetweb
44     - role: download_dpdk
45       dpdk_version: "{{ dpdk_version_for_PROX }}"
46     - role: install_dpdk
47       dpdk_version: "{{ dpdk_version_for_PROX }}"
48     - download_samplevnfs
49     - role: install_samplevnf
50       vnf_name: PROX
51     - download_dpdk
52     - install_dpdk
53     - download_pktgen
54     - install_pktgen
55     - role: install_samplevnf
56       vnf_name: UDP_Replay
57     - role: install_samplevnf
58       vnf_name: ACL
59     - role: install_samplevnf
60       vnf_name: FW
61     - role: install_samplevnf
62       vnf_name: CGNAPT
63     # build shared DPDK for collectd only, required DPDK downloaded already
64     - install_dpdk_shared
65     - install_rabbitmq
66     - download_intel_cmt_cat
67     - install_intel_cmt_cat
68     - download_pmu_tools
69     - install_pmu_tools
70     - download_collectd
71     - install_collectd
72     - download_drivers
73     - install_drivers