NSB support for [core x-y] NSB PROX NFVI configuration
[yardstick.git] / ansible / roles / build_yardstick_image / tasks / cloudimg_modify_nsb.yml
1 # Copyright (c) 2018 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 - debug:
16     msg: "chrooted in {{ inventory_hostname }}"
17
18 - debug:
19     var: proxy_env
20     verbosity: 2
21
22 - debug: msg="play_hosts={{play_hosts}}"
23
24 - include_role:
25     name: "{{ role_item }}"
26   with_items:
27     - reset_resolv_conf
28     - add_custom_repos
29     - modify_cloud_config
30   loop_control:
31     loop_var: role_item
32
33 - include_role:
34     name: set_package_installer_proxy
35   when: proxy_env is defined and proxy_env
36
37 - include_vars: roles/install_dpdk/vars/main.yml
38   when: dpdk_make_arch is undefined
39
40 - include_vars: roles/download_dpdk/defaults/main.yml
41   when: dpdk_version is undefined
42
43 - include_vars: roles/download_trex/defaults/main.yml
44   when: trex_unarchive is undefined
45
46 - include_vars: roles/download_civetweb/defaults/main.yml
47   when: civetweb_dest is undefined
48
49 - include_role:
50     name: "{{ role_item }}"
51   with_items:
52     - install_image_dependencies
53     - enable_hugepages_on_boot    # can't update grub in chroot/docker
54     - increase_open_file_limits   # needed for collectd plugins
55     - download_dpdk
56     - install_dpdk
57     - download_trex
58     - install_trex
59     - download_pktgen
60     - install_pktgen
61     - download_civetweb
62     - install_civetweb
63     - download_samplevnfs
64   loop_control:
65     loop_var: role_item
66   environment: "{{ proxy_env }}"
67
68 - include_vars: roles/install_dpdk/defaults/main.yml
69   when: INSTALL_BIN_PATH is undefined
70
71 - include_vars: roles/download_samplevnfs/defaults/main.yml
72   when: samplevnf_dest is undefined
73 - set_fact:
74     samplevnf_path: "{{ samplevnf_dest }}"
75 - include_role:
76     name: install_samplevnf
77   with_items:
78     - PROX
79     - UDP_Replay
80     - ACL
81     - FW
82     - CGNAPT
83   loop_control:
84     loop_var: vnf_name
85
86 - include_vars: roles/download_drivers/defaults/main.yml
87   when: i40evf_path is undefined
88
89 - include_role:
90     name: "{{ role_item }}"
91   with_items:
92     - install_dpdk_shared  # build shared DPDK for collectd only, required DPDK downloaded already
93     - install_rabbitmq
94     - download_intel_cmt_cat
95     - install_intel_cmt_cat
96     - download_pmu_tools
97     - install_pmu_tools
98     - download_collectd
99     - install_collectd
100     - download_drivers
101     - install_drivers
102   loop_control:
103     loop_var: role_item
104   environment: "{{ proxy_env }}"