This website requires JavaScript.
2017年10月27日 10:27:00 -05:00
#!/usr/bin/env bash
# Copyright 2017, Rackspace US, Inc.
# 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.
# Generate a set of typical flavors
for flavor in micro tiny mini small medium large xlarge heavy; do
EPHEMERAL="${EPHEMERAL:-0}"
nova flavor-delete "$ID" > /dev/null || echo "No Flavor with ID: [ $ID ] found to clean up"
nova flavor-create "$NAME" "$ID" "$RAM" "$DISK" "$VCPU" --swap "$SWAP" --is-public true --ephemeral "$EPHEMERAL" --rxtx-factor 1
elif [ "$ID" -gt 4 ];then
elif [ "$ID" -gt 3 ];then
elif [ "$ID" -gt 2 ];then
elif [ "$ID" -gt 1 ];then