openstack-ansible-os_glance/templates/glance-cache.conf.j2
Dmitriy Rabotyagov b7673143de Add glance cache variables into glance-api
In glance caching doc is stated[1], that some of the variables
should be defined in both glance-api and glance-cache config and should
be exactly the same, otherwise issues might raise.

We also introduce glance_image_cache_stall_time variable to control
cache time reliable across config files

[1] https://docs.openstack.org/glance/train/admin/cache.html#configuration-options-for-the-image-cache

Change-Id: Ic229e71978961546cec5f58a9c963c71e05ffba4
2021-01-13 13:58:22 +02:00

16 lines
547 B
Django/Jinja

# {{ ansible_managed }}
[DEFAULT]
# Disable stderr logging
use_stderr = False
debug = {{ debug }}
use_journal = True
admin_password = {{ glance_service_password }}
admin_user = {{ glance_service_user_name }}
admin_tenant_name = {{ glance_service_project_name }}
image_cache_dir = {{ glance_system_user_home }}/cache/
image_cache_stall_time = {{ glance_image_cache_stall_time }}
image_cache_max_size = {{ glance_image_cache_max_size }}
auth_url = {{ keystone_service_internalurl }}
filesystem_store_datadir = {{ glance_system_user_home }}/images/