46 lines
1.7 KiB
Bash
Executable File
46 lines
1.7 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
|
|
# The following flavors will be configured initially in the cloud. Note that
|
|
# these flavors will need to be configured per host aggregate, multiplying the
|
|
# list below by the host aggregates listed in the previous section. When
|
|
# combined with the host aggregate, this maps to 24 combinations which need
|
|
# to be defined, for brevity and clarity these combinations are not
|
|
# individually listed here.
|
|
|
|
# Name vCPU RAM (MB) Disk (GB) Disk Type
|
|
# m1.small 1 2048 20 Ceph
|
|
# m1.medium 2 4096 40 Ceph
|
|
# m1.large 4 8192 80 Ceph
|
|
# m1.xlarge 8 16384 160 Ceph
|
|
|
|
HOST_AGGREGATES=(
|
|
"default"
|
|
)
|
|
|
|
for host_aggregate in ${HOST_AGGREGATES[*]}; do
|
|
# m1.small.ceph 1 2048 20 Ceph
|
|
openstack flavor create \
|
|
--vcpus 1 --ram 2048 --disk 20 \
|
|
--property aggregate_instance_extra_specs:host_aggregate=${host_aggregate} \
|
|
${host_aggregate}.m1.small
|
|
|
|
# m1.medium.ceph 2 4096 40 Ceph
|
|
openstack flavor create \
|
|
--vcpus 2 --ram 4096 --disk 40 \
|
|
--property aggregate_instance_extra_specs:host_aggregate=${host_aggregate} \
|
|
${host_aggregate}.m1.medium
|
|
|
|
# m1.large.ceph 4 8192 80 Ceph
|
|
openstack flavor create \
|
|
--vcpus 4 --ram 8192 --disk 80 \
|
|
--property aggregate_instance_extra_specs:host_aggregate=${host_aggregate} \
|
|
${host_aggregate}.m1.large
|
|
|
|
# m1.xlarge.ceph 8 16384 160 Ceph
|
|
openstack flavor create \
|
|
--vcpus 8 --ram 16384 --disk 160 \
|
|
--property aggregate_instance_extra_specs:host_aggregate=${host_aggregate} \
|
|
${host_aggregate}.m1.xlarge
|
|
done
|