1 # Copyright (c) 2017 Intel Corporation.
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
7 # http://www.apache.org/licenses/LICENSE-2.0
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.
17 - yardstick_config.yml
20 HW_FW_TYPE: "{{ HW_FW_TYPES[YARD_IMG_ARCH] }}"
26 IMAGE_COMMAND: yardstick-img-lxd-modify
27 IMAGE_OUTPUT: "/tmp/workspace/yardstick/yardstick-image.img"
29 IMAGE_COMMAND: yardstick-img-modify
30 IMAGE_OUTPUT: "/tmp/workspace/yardstick/yardstick-image.tar.gz"
32 # QCOW_IMAGE: "/tmp/workspace/yardstick/yardstick-image.img"
33 # RAW_IMAGE: "/tmp/workspace/yardstick/yardstick-image.tar.gz"
35 # 'lxd': yardstick-img-lxd-modify
36 # 'default': yardstick-img-modify
40 - role: add_fuel_jumphost
41 when: "INSTALLER_TYPE == 'fuel'"
42 - role: detect_fuel_arch
43 when: "INSTALLER_TYPE == 'fuel'"
47 # - command: "{{ DEPLOY_VARS[DEPLOY_SCENARIO].IMAGE_COMMAND }}" "{{ IMAGE_MODIFY_SCRIPT }}"
49 # register: image_modify_result
51 # untils: image_modify_result|succeeded
53 # - stat: path="{{ DEPLOY_VARS[DEPLOY_SCENARIO].IMAGE_OUTPUT }}"}
54 # register: output_stat
57 # when: not output_stat
60 - include: build_yardstick_image.yml
62 - include: image_uploaders/upload_yardstick_image.yml
65 # upload vanilla ubuntu cloud_image
67 # - include: create_flavors.yml