#!/bin/bash # Copyright 2015 The Kubernetes Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. ## Contains configuration values for new image. It is skip when CREATE_IMAGE=false # Image name which will be displayed in OpenStack global OPENSTACK_IMAGE_NAME := $(OPENSTACK_IMAGE_NAME:-CentOS-7-x86_64-GenericCloud-1604) # Downloaded image name for Openstack project global IMAGE_FILE := $(IMAGE_FILE:-CentOS-7-x86_64-GenericCloud-1604.qcow2) # Absolute path where image file is stored. global IMAGE_PATH := $(IMAGE_PATH:-~/Downloads/openstack) # The URL basepath for downloading the image global IMAGE_URL_PATH := $(IMAGE_URL_PATH:-http://cloud.centos.org/centos/7/images) # The disk format of the image. Acceptable formats are ami, ari, aki, vhd, vmdk, raw, qcow2, vdi, and iso. global IMAGE_FORMAT := $(IMAGE_FORMAT:-qcow2) # The container format of the image. Acceptable formats are ami, ari, aki, bare, docker, and ovf. global CONTAINER_FORMAT := $(CONTAINER_FORMAT:-bare) (CommandList children: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:OPENSTACK_IMAGE_NAME) op: Equal rhs: { (BracedVarSub token: suffix_op: (StringUnary op_id: VTest_ColonHyphen arg_word: {(CentOS-7-x86_64-GenericCloud-1604)} ) spids: [52 56] ) } spids: [51] ) ] spids: [51] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:IMAGE_FILE) op: Equal rhs: { (BracedVarSub token: suffix_op: (StringUnary op_id: VTest_ColonHyphen arg_word: {(CentOS-7-x86_64-GenericCloud-1604.qcow2)} ) spids: [63 67] ) } spids: [62] ) ] spids: [62] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:IMAGE_PATH) op: Equal rhs: { (BracedVarSub token: suffix_op: (StringUnary op_id: VTest_ColonHyphen arg_word: {("~") (Lit_Slash /) (Downloads) (Lit_Slash /) (openstack)} ) spids: [74 82] ) } spids: [73] ) ] spids: [73] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:IMAGE_URL_PATH) op: Equal rhs: { (BracedVarSub token: suffix_op: (StringUnary op_id: VTest_ColonHyphen arg_word: {("http:") (Lit_Slash /) (Lit_Slash /) (cloud.centos.org) (Lit_Slash /) (centos) (Lit_Slash /) (7) (Lit_Slash /) (images) } ) spids: [89 102] ) } spids: [88] ) ] spids: [88] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:IMAGE_FORMAT) op: Equal rhs: { (BracedVarSub token: suffix_op: (StringUnary op_id:VTest_ColonHyphen arg_word:{(qcow2)}) spids: [109 113] ) } spids: [108] ) ] spids: [108] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:CONTAINER_FORMAT) op: Equal rhs: { (BracedVarSub token: suffix_op: (StringUnary op_id:VTest_ColonHyphen arg_word:{(bare)}) spids: [120 124] ) } spids: [119] ) ] spids: [119] ) ] )