Advertisement
Guest User

Untitled

a guest
Feb 27th, 2012
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.11 KB | None | 0 0
  1. [DEFAULT]
  2. # Show more verbose log output (sets INFO log level output)
  3. verbose = True
  4.  
  5. # Show debugging output in logs (sets DEBUG log level output)
  6. debug = False
  7.  
  8. # Which backend store should Glance use by default is not specified
  9. # in a request to add a new image to Glance? Default: 'file'
  10. # Available choices are 'file', 'swift', and 's3'
  11. default_store = file
  12.  
  13. # Address to bind the API server
  14. bind_host = 0.0.0.0
  15.  
  16. # Port the bind the API server to
  17. bind_port = 9292
  18.  
  19. # Address to find the registry server
  20. registry_host = 0.0.0.0
  21.  
  22. # Port the registry server is listening on
  23. registry_port = 9191
  24.  
  25. # Log to this file. Make sure you do not set the same log
  26. # file for both the API and registry servers!
  27. log_file = /var/log/glance/api.log
  28.  
  29. # Send logs to syslog (/dev/log) instead of to file specified by `log_file`
  30. use_syslog = False
  31.  
  32. # ============ Notification System Options =====================
  33.  
  34. # Notifications can be sent when images are create, updated or deleted.
  35. # There are three methods of sending notifications, logging (via the
  36. # log_file directive), rabbit (via a rabbitmq queue) or noop (no
  37. # notifications sent, the default)
  38. notifier_strategy = noop
  39.  
  40. # Configuration options if sending notifications via rabbitmq (these are
  41. # the defaults)
  42. rabbit_host = 192.168.0.6
  43. rabbit_port = 5672
  44. rabbit_use_ssl = false
  45. rabbit_userid = guest
  46. rabbit_password = guest
  47. rabbit_virtual_host = /
  48. rabbit_notification_topic = glance_notifications
  49.  
  50. # ============ Filesystem Store Options ========================
  51.  
  52. # Directory that the Filesystem backend store
  53. # writes image data to
  54. filesystem_store_datadir = /var/lib/glance/images/
  55.  
  56. # ============ Swift Store Options =============================
  57.  
  58. # Address where the Swift authentication service lives
  59. swift_store_auth_address = 127.0.0.1:8080/v1.0/
  60.  
  61. # User to authenticate against the Swift authentication service
  62. swift_store_user = jdoe
  63.  
  64. # Auth key for the user authenticating against the
  65. # Swift authentication service
  66. swift_store_key = a86850deb2742ec3cb41518e26aa2d89
  67.  
  68. # Container within the account that the account should use
  69. # for storing images in Swift
  70. swift_store_container = glance
  71.  
  72. # Do we create the container if it does not exist?
  73. swift_store_create_container_on_put = False
  74.  
  75. # What size, in MB, should Glance start chunking image files
  76. # and do a large object manifest in Swift? By default, this is
  77. # the maximum object size in Swift, which is 5GB
  78. swift_store_large_object_size = 5120
  79.  
  80. # When doing a large object manifest, what size, in MB, should
  81. # Glance write chunks to Swift? This amount of data is written
  82. # to a temporary disk buffer during the process of chunking
  83. # the image file, and the default is 200MB
  84. swift_store_large_object_chunk_size = 200
  85.  
  86. # Whether to use ServiceNET to communicate with the Swift storage servers.
  87. # (If you aren't RACKSPACE, leave this False!)
  88. #
  89. # To use ServiceNET for authentication, prefix hostname of
  90. # `swift_store_auth_address` with 'snet-'.
  91. # Ex. https://example.com/v1.0/ -> https://snet-example.com/v1.0/
  92. swift_enable_snet = False
  93.  
  94. # ============ S3 Store Options =============================
  95.  
  96. # Address where the S3 authentication service lives
  97. # Valid schemes are 'http://' and 'https://'
  98. # If no scheme specified, default to 'http://'
  99. s3_store_host = 192.168.0.8:8080/v1.0/
  100.  
  101. # User to authenticate against the S3 authentication service
  102. s3_store_access_key = <20-char AWS access key>
  103.  
  104. # Auth key for the user authenticating against the
  105. # S3 authentication service
  106. s3_store_secret_key = <40-char AWS secret key>
  107.  
  108. # Container within the account that the account should use
  109. # for storing images in S3. Note that S3 has a flat namespace,
  110. # so you need a unique bucket name for your glance images. An
  111. # easy way to do this is append your AWS access key to "glance".
  112. # S3 buckets in AWS *must* be lowercased, so remember to lowercase
  113. # your AWS access key if you use it in your bucket name below!
  114. s3_store_bucket = <lowercased 20-char aws access key>glance
  115.  
  116. # Do we create the bucket if it does not exist?
  117. s3_store_create_bucket_on_put = False
  118.  
  119. # ============ Image Cache Options ========================
  120.  
  121. image_cache_enabled = False
  122.  
  123. # Directory that the Image Cache writes data to
  124. # Make sure this is also set in glance-pruner.conf
  125. image_cache_datadir = /var/lib/glance/image-cache/
  126.  
  127. # Number of seconds after which we should consider an incomplete image to be
  128. # stalled and eligible for reaping
  129. image_cache_stall_timeout = 86400
  130.  
  131. # ============ Delayed Delete Options =============================
  132.  
  133. # Turn on/off delayed delete
  134. delayed_delete = False
  135.  
  136. [pipeline:glance-api]
  137. #pipeline = versionnegotiation context apiv1app
  138. # NOTE: use the following pipeline for keystone
  139. # pipeline = versionnegotiation authtoken auth-context apiv1app
  140.  
  141. # To enable Image Cache Management API replace pipeline with below:
  142. # pipeline = versionnegotiation context imagecache apiv1app
  143. # NOTE: use the following pipeline for keystone auth (with caching)
  144. # pipeline = versionnegotiation authtoken auth-context imagecache apiv1app
  145. pipeline = versionnegotiation authtoken keystone_shim apiv1app
  146.  
  147. [pipeline:versions]
  148. pipeline = versionsapp
  149.  
  150. [app:versionsapp]
  151. paste.app_factory = glance.api.versions:app_factory
  152.  
  153. [app:apiv1app]
  154. paste.app_factory = glance.api.v1:app_factory
  155.  
  156. [filter:versionnegotiation]
  157. paste.filter_factory = glance.api.middleware.version_negotiation:filter_factory
  158.  
  159. [filter:imagecache]
  160. paste.filter_factory = glance.api.middleware.image_cache:filter_factory
  161.  
  162. [filter:context]
  163. paste.filter_factory = glance.common.context:filter_factory
  164.  
  165. [filter:authtoken]
  166. paste.filter_factory = keystone.middleware.auth_token:filter_factory
  167. service_protocol = http
  168. service_host = 127.0.0.1
  169. service_port = 5000
  170. auth_host = 127.0.0.1
  171. auth_port = 35357
  172. auth_protocol = http
  173. auth_uri = http://127.0.0.1:5000/
  174. admin_token = 11121314151617181920
  175.  
  176. [filter:auth-context]
  177. paste.filter_factory = keystone.middleware.glance_auth_token:filter_factory
  178.  
  179. [filter:keystone_shim]
  180. context_class = glance.registry.context.RequestContext
  181. paste.filter_factory = keystone.middleware.glance_auth_token:filter_factory
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement