Handle the hardcoded configuration values
This patch allows to customize the hardcoded configuration values,
as well as introduce new configuration options for glance services
by configmap template with the specified section:
glance:
server:
configmap:
glace_api:
DEFAULT:
image_member_quota = 128
image_property_quota = 128
image_tag_quota = 128
image_location_quota = 10
user_storage_quota = 0
glace_registry:
DEFAULT:
image_member_quota = 128
image_property_quota = 128
image_tag_quota = 128
image_location_quota = 10
user_storage_quota = 0
...
Change-Id: Ie74a66321ec39d154cac95d3315381c395b5582c
Related-Prod: PROD-29040
diff --git a/glance/files/pike/glance-registry.conf.Debian b/glance/files/pike/glance-registry.conf.Debian
index 6128221..34777d4 100644
--- a/glance/files/pike/glance-registry.conf.Debian
+++ b/glance/files/pike/glance-registry.conf.Debian
@@ -2099,3 +2099,8 @@
# * messaging://: use oslo_messaging driver for sending notifications.
# (string value)
#connection_string = messaging://
+
+{%- if server.get('configmap', {}).glance_registry is defined %}
+{%- set _data = server.configmap.glance_registry %}
+{%- include "oslo_templates/files/configmap/configmap.conf" %}
+{%- endif %}