Managing show_image_direct_url variable

Change-Id: I6ca7ab68911abcd9131c6ea88473727a3c0ca365
diff --git a/glance/files/juno/glance-api.conf.Debian b/glance/files/juno/glance-api.conf.Debian
index b0e68a7..9dc67d4 100644
--- a/glance/files/juno/glance-api.conf.Debian
+++ b/glance/files/juno/glance-api.conf.Debian
@@ -98,7 +98,7 @@
 # be returned to the user in the 'direct_url' meta-data field.
 # The default value is false.
 #show_image_direct_url = False
-show_image_direct_url = True
+show_image_direct_url = {{ server.get('show_image_direct_url', True)|lower }}
 
 # Send headers containing user and tenant information when making requests to
 # the v1 glance registry. This allows the registry to function as if a user is
diff --git a/glance/files/kilo/glance-api.conf.Debian b/glance/files/kilo/glance-api.conf.Debian
index b1d32f7..c11ba9d 100644
--- a/glance/files/kilo/glance-api.conf.Debian
+++ b/glance/files/kilo/glance-api.conf.Debian
@@ -70,7 +70,7 @@
 # be returned to the user in the 'direct_url' meta-data field.
 # The default value is false.
 #show_image_direct_url = False
-show_image_direct_url = True
+show_image_direct_url = {{ server.get('show_image_direct_url', True)|lower }}
 
 # Send headers containing user and tenant information when making requests to
 # the v1 glance registry. This allows the registry to function as if a user is
diff --git a/glance/files/liberty/glance-api.conf.Debian b/glance/files/liberty/glance-api.conf.Debian
index db1ef1c..a81c55f 100644
--- a/glance/files/liberty/glance-api.conf.Debian
+++ b/glance/files/liberty/glance-api.conf.Debian
@@ -74,7 +74,7 @@
 # be returned to the user in the 'direct_url' meta-data field.
 # The default value is false.
 #show_image_direct_url = False
-show_image_direct_url = True
+show_image_direct_url = {{ server.get('show_image_direct_url', True)|lower }}
 
 # Send headers containing user and tenant information when making requests to
 # the v1 glance registry. This allows the registry to function as if a user is
diff --git a/glance/files/mitaka/glance-api.conf.Debian b/glance/files/mitaka/glance-api.conf.Debian
index 3efb9dc..5142013 100644
--- a/glance/files/mitaka/glance-api.conf.Debian
+++ b/glance/files/mitaka/glance-api.conf.Debian
@@ -64,7 +64,7 @@
 # properties. Revealing storage location can be a security risk, so
 # use this setting with caution! (boolean value)
 #show_image_direct_url = false
-show_image_direct_url = true
+show_image_direct_url = {{ server.get('show_image_direct_url', True)|lower }}
 
 # Whether to include the backend image locations in image properties.
 # For example, if using the file system store a URL of
diff --git a/glance/files/newton/glance-api.conf.Debian b/glance/files/newton/glance-api.conf.Debian
index de83148..931fe44 100644
--- a/glance/files/newton/glance-api.conf.Debian
+++ b/glance/files/newton/glance-api.conf.Debian
@@ -294,7 +294,7 @@
 #
 #  (boolean value)
 #show_image_direct_url = false
-show_image_direct_url = true
+show_image_direct_url = {{ server.get('show_image_direct_url', True)|lower }}
 
 # DEPRECATED:
 # Show all image locations when returning an image.
diff --git a/glance/files/ocata/glance-api.conf.Debian b/glance/files/ocata/glance-api.conf.Debian
index 8b3f40d..7068951 100644
--- a/glance/files/ocata/glance-api.conf.Debian
+++ b/glance/files/ocata/glance-api.conf.Debian
@@ -294,7 +294,7 @@
 #
 #  (boolean value)
 #show_image_direct_url = false
-show_image_direct_url = true
+show_image_direct_url = {{ server.get('show_image_direct_url', True)|lower }}
 
 # DEPRECATED:
 # Show all image locations when returning an image.