Create Dockerfile to create a yardstick-image of docker
[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_pktgen
44     - install_pktgen
45     - download_civetweb
46     - install_civetweb
47     - download_samplevnfs
48     - role: install_samplevnf
49       vnf_name: PROX
50     - role: install_samplevnf
51       vnf_name: UDP_Replay
52     - role: install_samplevnf
53       vnf_name: ACL
54     - role: install_samplevnf
55       vnf_name: FW
56     - role: install_samplevnf
57       vnf_name: CGNAPT
58     - role: install_samplevnf
59       vnf_name: PE
60     # build shared DPDK for collectd only, required DPDK downloaded already
61     - install_dpdk_shared
62     - install_rabbitmq
63     - download_intel_cmt_cat
64     - install_intel_cmt_cat
65     - download_pmu_tools
66     - install_pmu_tools
67     - download_collectd
68     - install_collectd
69     - download_drivers
70     - install_drivers