Guest User

Untitled

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