Add CPU isolation support for Yardstick NSB setup
[yardstick.git] / ansible / ubuntu_server_baremetal_deploy_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: yardstick-standalone:jumphost
16   vars:
17     clone_dir: /tmp/yardstick-clone
18   vars_files:
19     - roles/download_dpdk/defaults/main.yml
20   environment:
21     "{{ proxy_env }}"
22
23   roles:
24     - add_custom_repos
25     - role: set_package_installer_proxy
26       when: proxy_env is defined and proxy_env
27 #     can't update grub in chroot/docker
28     - enable_hugepages_on_boot
29     - enable_iommu_on_boot
30     - enable_cpu_isolation_on_boot
31     # needed for collectd plugins
32     - increase_open_file_limits
33     - install_image_dependencies
34     - download_trex
35     - install_trex
36     - download_civetweb
37     - install_civetweb
38     - role: download_dpdk
39       dpdk_version: "{{ dpdk_version_for_PROX }}"
40     - role: install_dpdk
41       dpdk_version: "{{ dpdk_version_for_PROX }}"
42     - download_samplevnfs
43     - role: install_samplevnf
44       vnf_name: PROX
45     - download_dpdk
46     - install_dpdk
47     - role: install_samplevnf
48       vnf_name: UDP_Replay
49     - role: install_samplevnf
50       vnf_name: ACL
51     - role: install_samplevnf
52       vnf_name: FW
53     - role: install_samplevnf
54       vnf_name: CGNAPT
55     # build shared DPDK for collectd only, required DPDK downloaded already
56     - install_dpdk_shared
57     - install_rabbitmq
58     - download_intel_cmt_cat
59     - install_intel_cmt_cat
60     - download_pmu_tools
61     - install_pmu_tools
62     - download_collectd
63     - install_collectd
64     - docker
65     - barometer_collectd