fuel-plugin-manila/deployment_scripts/puppet/modules/manila_auxiliary/files/meta.sh

24 lines
733 B
Bash
Executable File

#!/bin/bash
. /root/openrc
if [[ -z $(manila type-list|grep default_share_type) ]]; then
echo add default_share_type
manila type-create default_share_type True
fi
if [[ -z $(manila share-network-list| grep test_share_network) ]];then
echo add test_share_network
net_uid=$(neutron net-list|grep internal|cut -f2 -d' ')
subnet_uid=$(neutron net-list|grep internal|cut -f6 -d' ')
manila share-network-create \
--name test_share_network \
--neutron-net-id $net_uid \
--neutron-subnet-id $subnet_uid
fi
if [[ -z $(openstack flavor list|grep manila-service-flavor) ]];then
echo add manila-service-flavor
openstack flavor create manila-service-flavor --id 100 --ram 256 --disk 0 --vcpus 1
fi