Skip to content

Commit

Permalink
This will configure glance-api.conf and glance-registry.conf for logging
Browse files Browse the repository at this point in the history
and image storage
Partial-Bug: #1585833

Change-Id: I405edbcc8efbd3168559289c5f2063114b3bbb2d
  • Loading branch information
moghea committed May 26, 2016
1 parent dd4e2e8 commit 7bb6dd6
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -132,6 +132,9 @@ for cfg in api; do
openstack-config --set /etc/glance/glance-$cfg.conf DEFAULT db_enforce_mysql_charset False
fi
fi
if [ $is_ubuntu -eq 1 ] ; then
openstack-config --set /etc/glance/glance-$cfg.conf glance_store filesystem_store_datadir /var/lib/glance/images/
fi
done

for cfg in api registry; do
Expand All @@ -142,6 +145,7 @@ for cfg in api registry; do
openstack-config --set /etc/glance/glance-$cfg.conf keystone_authtoken auth_protocol http
openstack-config --set /etc/glance/glance-$cfg.conf paste_deploy flavor keystone
if [ $is_ubuntu -eq 1 ] ; then
openstack-config --set /etc/glance/glance-$cfg.conf DEFAULT log_file /var/log/glance/$cfg.log
if [[ $glance_api_ver == *"11.0.0"* ]]; then
openstack-config --set /etc/glance/glance-$cfg.conf glance_store filesystem_store_datadirs /var/lib/glance/images/
fi
Expand Down

0 comments on commit 7bb6dd6

Please sign in to comment.