Yardsitck Gambia Release 7.2.0 release notes.
[yardstick.git] / ansible / load_images.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
16   vars_files:
17     - yardstick_config.yml
18   vars:
19     YARD_IMG_ARCH: amd64
20     HW_FW_TYPE: "{{ HW_FW_TYPES[YARD_IMG_ARCH] }}"
21     HW_FW_TYPES:
22       amd64: ''
23       arm64: 'uefi'
24     DEPLOY_VARS:
25       'lxd':
26         IMAGE_COMMAND: yardstick-img-lxd-modify
27         IMAGE_OUTPUT: "/tmp/workspace/yardstick/yardstick-image.img"
28       'default':
29         IMAGE_COMMAND: yardstick-img-modify
30         IMAGE_OUTPUT: "/tmp/workspace/yardstick/yardstick-image.tar.gz"
31
32   roles:
33     - role: add_fuel_jumphost
34       when: "INSTALLER_TYPE == 'fuel'"
35     - role: detect_fuel_arch
36       when: "INSTALLER_TYPE == 'fuel'"
37
38 - include: build_yardstick_image.yml
39   vars:
40     img_property: normal
41
42 - include: image_uploaders/upload_yardstick_image.yml
43