/cookbooks/glance/templates/default/glance-registry.conf.erb

https://github.com/blackantcloud/openstack-chef · Ruby HTML · 59 lines · 45 code · 14 blank · 0 comment · 4 complexity · 26e77606fbf9660309b10c8462298bdf MD5 · raw file

  1. [DEFAULT]
  2. # Show more verbose log output (sets INFO log level output)
  3. verbose = <%= node[:glance][:verbose] %>
  4. # Show debugging output in logs (sets DEBUG log level output)
  5. debug = <%= node[:glance][:debug] %>
  6. # Address to bind the registry server
  7. bind_host = <%= node[:glance][:registry_host] %>
  8. # Port the bind the registry server to
  9. bind_port = <%= node[:glance][:registry_bind_port] %>
  10. # Log to this file. Make sure you do not set the same log
  11. # file for both the API and registry servers!
  12. log_file = <%= node[:glance][:log_dir] %>/registry.log
  13. # Send logs to syslog (/dev/log) instead of to file specified by `log_file`
  14. use_syslog = <%= node[:glance][:use_syslog] %>
  15. # Backlog requests when creating socket
  16. backlog = <%= node[:glance][:backlog] %>
  17. # SQLAlchemy connection string for the reference implementation
  18. # registry server. Any valid SQLAlchemy connection string is fine.
  19. # See: http://www.sqlalchemy.org/docs/05/reference/sqlalchemy/connections.html#sqlalchemy.create_engine
  20. sql_connection = <%= @sql_connection %>
  21. # Period in seconds after which SQLAlchemy should reestablish its connection
  22. # to the database.
  23. #
  24. # MySQL uses a default `wait_timeout` of 8 hours, after which it will drop
  25. # idle connections. This can result in 'MySQL Gone Away' exceptions. If you
  26. # notice this, you can lower this value to ensure that SQLAlchemy reconnects
  27. # before MySQL can drop the connection.
  28. sql_idle_timeout = <%= node[:glance][:sql_idle_timeout] %>
  29. # Limit the api to return `param_limit_max` items in a call to a container. If
  30. # a larger `limit` query param is provided, it will be reduced to this value.
  31. api_limit_max = <%= node[:glance][:api_limit_max] %>
  32. # If a `limit` query param is not provided in an api request, it will
  33. # default to `limit_param_default`
  34. limit_param_default = <%= node[:glance][:limit_param_default] %>
  35. # ================= SSL Options ===============================
  36. # Certificate file to use when starting registry server securely
  37. <% if node[:glance][:cert_file] then %>
  38. cert_file = <%= node[:glance][:cert_file] %>
  39. <% end %>
  40. # Private key file to use when starting registry server securely
  41. <% if node[:glance][:key_file] then %>
  42. key_file = <%= node[:glance][:key_file] %>
  43. <% end %>
  44. [paste_deploy]
  45. flavor = <%= node[:glance][:registry_flavor] %>