byghis

openstack cactus - /etc/glance/glance.conf - natty server

Sep 29th, 2011
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.41 KB | None | 0 0
  1. edward@pituba:~$ cat /etc/glance/glance.conf
  2. [DEFAULT]
  3. # Show more verbose log output (sets INFO log level output)
  4. verbose = True
  5.  
  6. # Show debugging output in logs (sets DEBUG log level output)
  7. debug = True
  8.  
  9. [app:glance-api]
  10. paste.app_factory = glance.server:app_factory
  11.  
  12. # Which backend store should Glance use by default is not specified
  13. # in a request to add a new image to Glance? Default: 'file'
  14. # Available choices are 'file', 'swift', and 's3'
  15. default_store = file
  16.  
  17. # Address to bind the API server
  18. bind_host = 0.0.0.0
  19.  
  20. # Port the bind the API server to
  21. bind_port = 9292
  22.  
  23. # Address to find the registry server
  24. registry_host = 0.0.0.0
  25.  
  26. # Port the registry server is listening on
  27. registry_port = 9191
  28.  
  29. # ============ Filesystem Store Options ========================
  30.  
  31. # Directory that the Filesystem backend store
  32. # writes image data to
  33. filesystem_store_datadir=/var/lib/glance/images/
  34.  
  35. # ============ Swift Store Options =============================
  36.  
  37. # Address where the Swift authentication service lives
  38. swift_store_auth_address = 127.0.0.1:8080/v1.0/
  39.  
  40. # User to authenticate against the Swift authentication service
  41. swift_store_user = jdoe
  42.  
  43. # Auth key for the user authenticating against the
  44. # Swift authentication service
  45. swift_store_key = a86850deb2742ec3cb41518e26aa2d89
  46.  
  47. # Container within the account that the account should use
  48. # for storing images in Swift
  49. swift_store_container = glance
  50.  
  51. # Do we create the container if it does not exist?
  52. swift_store_create_container_on_put = False
  53.  
  54. [app:glance-registry]
  55. paste.app_factory = glance.registry.server:app_factory
  56.  
  57. # Address to bind the registry server
  58. bind_host = 0.0.0.0
  59.  
  60. # Port the bind the registry server to
  61. bind_port = 9191
  62.  
  63. # SQLAlchemy connection string for the reference implementation
  64. # registry server. Any valid SQLAlchemy connection string is fine.
  65. # See: http://www.sqlalchemy.org/docs/05/reference/sqlalchemy/connections.html#sqlalchemy.create_engine
  66. sql_connection = sqlite:////var/lib/glance/glance.sqlite
  67.  
  68. # Period in seconds after which SQLAlchemy should reestablish its connection
  69. # to the database.
  70. #
  71. # MySQL uses a default `wait_timeout` of 8 hours, after which it will drop
  72. # idle connections. This can result in 'MySQL Gone Away' exceptions. If you
  73. # notice this, you can lower this value to ensure that SQLAlchemy reconnects
  74. # before MySQL can drop the connection.
  75. sql_idle_timeout = 3600
  76. edward@pituba:~$
  77.  
  78.  
Advertisement
Add Comment
Please, Sign In to add comment