Use variables to identity config directories
Some of the services (eg. glance) supports customizing the directory. Make sure we use the one actually used during installation. Also use a variable for /etc/openstack (where the clouds.yaml is created) for consistency. Change-Id: I0ca5083a773e8a47c72c09a7819d286f4e0873b7 Signed-off-by: Takashi Kajinami <kajinamit@oss.nttdata.com>
This commit is contained in:
2
clean.sh
2
clean.sh
@@ -102,7 +102,7 @@ if is_service_enabled nova && [[ -r $NOVA_PLUGINS/hypervisor-$VIRT_DRIVER ]]; th
|
||||
fi
|
||||
|
||||
# Clean out /etc
|
||||
sudo rm -rf /etc/keystone /etc/glance /etc/nova /etc/placement /etc/cinder /etc/swift /etc/neutron /etc/openstack/
|
||||
sudo rm -rf $KEYSTONE_CONF_DIR $GLANCE_CONF_DIR $NOVA_CONF_DIR $PLACEMENT_CONF_DIR $CINDER_CONF_DIR $SWIFT_CONF_DIR $NEUTRON_CONF_DIR $OPENSTACKCLIENT_CONF_DIR
|
||||
|
||||
# Clean out tgt
|
||||
sudo rm -f /etc/tgt/conf.d/*
|
||||
|
||||
@@ -54,6 +54,8 @@ STACK_ENV_VARS="BASE_SQL_CONN DATA_DIR DEST ENABLED_SERVICES HOST_IP \
|
||||
LOGFILE OS_CACERT SERVICE_HOST STACK_USER TLS_IP \
|
||||
HOST_IPV6 SERVICE_IP_VERSION TUNNEL_ENDPOINT_IP TUNNEL_IP_VERSION"
|
||||
|
||||
OPENSTACKCLIENT_CONF_DIR=/etc/openstack
|
||||
|
||||
|
||||
# Saves significant environment variables to .stackenv for later use
|
||||
# Refers to a lot of globals, only TOP_DIR and STACK_ENV_VARS are required to
|
||||
@@ -79,10 +81,10 @@ function write_clouds_yaml {
|
||||
# overridable. There is currently no usecase where doing so makes sense, so
|
||||
# it's not currently configurable.
|
||||
|
||||
CLOUDS_YAML=/etc/openstack/clouds.yaml
|
||||
CLOUDS_YAML=${OPENSTACKCLIENT_CONF_DIR}/clouds.yaml
|
||||
|
||||
sudo mkdir -p $(dirname $CLOUDS_YAML)
|
||||
sudo chown -R $STACK_USER /etc/openstack
|
||||
sudo mkdir -p $OPENSTACKCLIENT_CONF_DIR
|
||||
sudo chown -R $STACK_USER $OPENSTACKCLIENT_CONF_DIR
|
||||
|
||||
CA_CERT_ARG=''
|
||||
if [ -f "$SSL_BUNDLE_FILE" ]; then
|
||||
|
||||
Reference in New Issue
Block a user