glance/doc/source/install/edit-glance-api-conf.rst
Cyril Roelandt 97551b953b Doc: remove "stores" and "default_store" options
We should only be advertising the multi-backend configuration.
Therefore, we use the "enabled_backends" and "default_backend" options.

Change-Id: I911a87bb4ea908bbabc4b471d88c580a7dd74c81
2023-06-21 04:24:41 +02:00

67 lines
1.5 KiB
ReStructuredText

* In the ``[database]`` section, configure database access:
.. path /etc/glance/glance.conf
.. code-block:: ini
[database]
# ...
connection = mysql+pymysql://glance:GLANCE_DBPASS@controller/glance
.. end
Replace ``GLANCE_DBPASS`` with the password you chose for the
Image service database.
* In the ``[keystone_authtoken]`` and ``[paste_deploy]`` sections,
configure Identity service access:
.. path /etc/glance/glance.conf
.. code-block:: ini
[keystone_authtoken]
# ...
www_authenticate_uri = http://controller:5000
auth_url = http://controller:5000
memcached_servers = controller:11211
auth_type = password
project_domain_name = Default
user_domain_name = Default
project_name = service
username = glance
password = GLANCE_PASS
[paste_deploy]
# ...
flavor = keystone
.. end
Replace ``GLANCE_PASS`` with the password you chose for the
``glance`` user in the Identity service.
.. note::
Comment out or remove any other options in the
``[keystone_authtoken]`` section.
* In the ``[glance_store]`` section, configure the local file
system store and location of image files:
.. path /etc/glance/glance.conf
.. code-block:: ini
[DEFAULT]
# ...
enabled_backends=fs:file
[glance_store]
# ...
default_backend = fs
[fs]
filesystem_store_datadir = /var/lib/glance/images/
.. end
.. include:: configure-quotas.rst