Merge "Resolve full path to adminrc file if full path is not provided" into stable...
[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
20   pre_tasks:
21     - debug:
22         msg: "chrooted in {{ inventory_hostname }}"
23     - debug:
24         var: proxy_env
25         verbosity: 2
26
27   roles:
28     - reset_resolv_conf
29     - add_custom_repos
30     - role: set_package_installer_proxy
31       when: proxy_env is defined and proxy_env
32 #     can't update grub in chroot/docker
33     - enable_hugepages_on_boot
34     # needed for collectd plugins
35     - increase_open_file_limits
36     - modify_cloud_config
37     - install_image_dependencies
38     - role: download_dpdk
39 #      dpdk_version: "17.02"
40     - install_dpdk
41     - download_trex
42     - install_trex
43     - download_civetweb
44     - install_civetweb
45     - download_samplevnfs
46     - role: install_samplevnf
47       vnf_name: PROX
48     - role: install_samplevnf
49       vnf_name: UDP_Replay
50     - role: install_samplevnf
51       vnf_name: ACL
52     - role: install_samplevnf
53       vnf_name: FW
54     - role: install_samplevnf
55       vnf_name: CGNATP
56     # build shared DPDK for collectd only, required DPDK downloaded already
57     - install_dpdk_shared
58     - install_rabbitmq
59     - download_intel_cmt_cat
60     - install_intel_cmt_cat
61     - download_pmu_tools
62     - install_pmu_tools
63     - download_collectd
64     - install_collectd