Merge "Add a flexible API version choice for Cinder, Glance and Heat"
This commit is contained in:
commit
ec528ecae2
@ -341,7 +341,7 @@ function configure_cinder() {
|
|||||||
-e 's/snapshot_autoextend_percent =.*/snapshot_autoextend_percent = 20/' \
|
-e 's/snapshot_autoextend_percent =.*/snapshot_autoextend_percent = 20/' \
|
||||||
/etc/lvm/lvm.conf
|
/etc/lvm/lvm.conf
|
||||||
fi
|
fi
|
||||||
iniset $CINDER_CONF keystone_authtoken auth_uri $KEYSTONE_SERVICE_PROTOCOL://$KEYSTONE_SERVICE_HOST:$KEYSTONE_SERVICE_PORT
|
configure_API_version $CINDER_CONF $IDENTITY_API_VERSION
|
||||||
iniset $CINDER_CONF keystone_authtoken admin_user cinder
|
iniset $CINDER_CONF keystone_authtoken admin_user cinder
|
||||||
iniset $CINDER_CONF keystone_authtoken admin_tenant_name $SERVICE_TENANT_NAME
|
iniset $CINDER_CONF keystone_authtoken admin_tenant_name $SERVICE_TENANT_NAME
|
||||||
iniset $CINDER_CONF keystone_authtoken admin_password $SERVICE_PASSWORD
|
iniset $CINDER_CONF keystone_authtoken admin_password $SERVICE_PASSWORD
|
||||||
|
@ -83,7 +83,7 @@ function configure_glance() {
|
|||||||
iniset $GLANCE_REGISTRY_CONF keystone_authtoken auth_port $KEYSTONE_AUTH_PORT
|
iniset $GLANCE_REGISTRY_CONF keystone_authtoken auth_port $KEYSTONE_AUTH_PORT
|
||||||
iniset $GLANCE_REGISTRY_CONF keystone_authtoken auth_protocol $KEYSTONE_AUTH_PROTOCOL
|
iniset $GLANCE_REGISTRY_CONF keystone_authtoken auth_protocol $KEYSTONE_AUTH_PROTOCOL
|
||||||
iniset $GLANCE_REGISTRY_CONF keystone_authtoken cafile $KEYSTONE_SSL_CA
|
iniset $GLANCE_REGISTRY_CONF keystone_authtoken cafile $KEYSTONE_SSL_CA
|
||||||
iniset $GLANCE_REGISTRY_CONF keystone_authtoken auth_uri $KEYSTONE_SERVICE_PROTOCOL://$KEYSTONE_SERVICE_HOST:$KEYSTONE_SERVICE_PORT/
|
configure_API_version $GLANCE_REGISTRY_CONF $IDENTITY_API_VERSION
|
||||||
iniset $GLANCE_REGISTRY_CONF keystone_authtoken admin_tenant_name $SERVICE_TENANT_NAME
|
iniset $GLANCE_REGISTRY_CONF keystone_authtoken admin_tenant_name $SERVICE_TENANT_NAME
|
||||||
iniset $GLANCE_REGISTRY_CONF keystone_authtoken admin_user glance
|
iniset $GLANCE_REGISTRY_CONF keystone_authtoken admin_user glance
|
||||||
iniset $GLANCE_REGISTRY_CONF keystone_authtoken admin_password $SERVICE_PASSWORD
|
iniset $GLANCE_REGISTRY_CONF keystone_authtoken admin_password $SERVICE_PASSWORD
|
||||||
@ -101,7 +101,7 @@ function configure_glance() {
|
|||||||
iniset $GLANCE_API_CONF keystone_authtoken auth_port $KEYSTONE_AUTH_PORT
|
iniset $GLANCE_API_CONF keystone_authtoken auth_port $KEYSTONE_AUTH_PORT
|
||||||
iniset $GLANCE_API_CONF keystone_authtoken auth_protocol $KEYSTONE_AUTH_PROTOCOL
|
iniset $GLANCE_API_CONF keystone_authtoken auth_protocol $KEYSTONE_AUTH_PROTOCOL
|
||||||
iniset $GLANCE_API_CONF keystone_authtoken cafile $KEYSTONE_SSL_CA
|
iniset $GLANCE_API_CONF keystone_authtoken cafile $KEYSTONE_SSL_CA
|
||||||
iniset $GLANCE_API_CONF keystone_authtoken auth_uri $KEYSTONE_SERVICE_PROTOCOL://$KEYSTONE_SERVICE_HOST:$KEYSTONE_SERVICE_PORT/
|
configure_API_version $GLANCE_API_CONF $IDENTITY_API_VERSION
|
||||||
iniset $GLANCE_API_CONF keystone_authtoken admin_tenant_name $SERVICE_TENANT_NAME
|
iniset $GLANCE_API_CONF keystone_authtoken admin_tenant_name $SERVICE_TENANT_NAME
|
||||||
iniset $GLANCE_API_CONF keystone_authtoken admin_user glance
|
iniset $GLANCE_API_CONF keystone_authtoken admin_user glance
|
||||||
iniset $GLANCE_API_CONF keystone_authtoken admin_password $SERVICE_PASSWORD
|
iniset $GLANCE_API_CONF keystone_authtoken admin_password $SERVICE_PASSWORD
|
||||||
|
2
lib/heat
2
lib/heat
@ -95,7 +95,7 @@ function configure_heat() {
|
|||||||
iniset $HEAT_CONF keystone_authtoken auth_host $KEYSTONE_AUTH_HOST
|
iniset $HEAT_CONF keystone_authtoken auth_host $KEYSTONE_AUTH_HOST
|
||||||
iniset $HEAT_CONF keystone_authtoken auth_port $KEYSTONE_AUTH_PORT
|
iniset $HEAT_CONF keystone_authtoken auth_port $KEYSTONE_AUTH_PORT
|
||||||
iniset $HEAT_CONF keystone_authtoken auth_protocol $KEYSTONE_AUTH_PROTOCOL
|
iniset $HEAT_CONF keystone_authtoken auth_protocol $KEYSTONE_AUTH_PROTOCOL
|
||||||
iniset $HEAT_CONF keystone_authtoken auth_uri $KEYSTONE_SERVICE_PROTOCOL://$KEYSTONE_SERVICE_HOST:$KEYSTONE_SERVICE_PORT/v2.0
|
configure_API_version $HEAT_CONF $IDENTITY_API_VERSION
|
||||||
iniset $HEAT_CONF keystone_authtoken cafile $KEYSTONE_SSL_CA
|
iniset $HEAT_CONF keystone_authtoken cafile $KEYSTONE_SSL_CA
|
||||||
iniset $HEAT_CONF keystone_authtoken admin_tenant_name $SERVICE_TENANT_NAME
|
iniset $HEAT_CONF keystone_authtoken admin_tenant_name $SERVICE_TENANT_NAME
|
||||||
iniset $HEAT_CONF keystone_authtoken admin_user heat
|
iniset $HEAT_CONF keystone_authtoken admin_user heat
|
||||||
|
@ -335,6 +335,14 @@ create_keystone_accounts() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Configure the API version for the OpenStack projects.
|
||||||
|
# configure_API_version conf_file version
|
||||||
|
function configure_API_version() {
|
||||||
|
local conf_file=$1
|
||||||
|
local api_version=$2
|
||||||
|
iniset $conf_file keystone_authtoken auth_uri $KEYSTONE_SERVICE_PROTOCOL://$KEYSTONE_SERVICE_HOST:$KEYSTONE_SERVICE_PORT/v$api_version
|
||||||
|
}
|
||||||
|
|
||||||
# init_keystone() - Initialize databases, etc.
|
# init_keystone() - Initialize databases, etc.
|
||||||
function init_keystone() {
|
function init_keystone() {
|
||||||
if is_service_enabled ldap; then
|
if is_service_enabled ldap; then
|
||||||
|
Loading…
Reference in New Issue
Block a user