Advertisement
Guest User

Untitled

a guest
Feb 8th, 2012
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.20 KB | None | 0 0
  1.  
  2. root@server3:/etc/glance# more glance-api.conf
  3. [DEFAULT]
  4. # Show more verbose log output (sets INFO log level output)
  5. verbose = True
  6.  
  7. # Show debugging output in logs (sets DEBUG log level output)
  8. debug = False
  9.  
  10. # Which backend store should Glance use by default is not specified
  11. # in a request to add a new image to Glance? Default: 'file'
  12. # Available choices are 'file', 'swift', and 's3'
  13. default_store = swift
  14.  
  15. # Address to bind the API server
  16. bind_host = 0.0.0.0
  17.  
  18. # Port the bind the API server to
  19. bind_port = 9292
  20.  
  21. # Address to find the registry server
  22. registry_host = 0.0.0.0
  23.  
  24. # Port the registry server is listening on
  25. registry_port = 9191
  26.  
  27. # Log to this file. Make sure you do not set the same log
  28. # file for both the API and registry servers!
  29. log_file = /var/log/glance/api.log
  30.  
  31. # Send logs to syslog (/dev/log) instead of to file specified by `log_file`
  32. use_syslog = False
  33.  
  34. # ============ Notification System Options =====================
  35.  
  36. # Notifications can be sent when images are create, updated or deleted.
  37. # There are three methods of sending notifications, logging (via the
  38. # log_file directive), rabbit (via a rabbitmq queue) or noop (no
  39. # notifications sent, the default)
  40. notifier_strategy = noop
  41.  
  42. # Configuration options if sending notifications via rabbitmq (these are
  43. # the defaults)
  44. rabbit_host = localhost
  45. rabbit_port = 5672
  46. rabbit_use_ssl = false
  47. rabbit_userid = guest
  48. rabbit_password = guest
  49. rabbit_virtual_host = /
  50. rabbit_notification_topic = glance_notifications
  51.  
  52. # ============ Filesystem Store Options ========================
  53.  
  54. # Directory that the Filesystem backend store
  55. # writes image data to
  56. filesystem_store_datadir = /var/lib/glance/images/
  57.  
  58. # ============ Swift Store Options =============================
  59.  
  60. # Address where the Swift authentication service lives
  61. #swift_store_auth_address = http://127.0.0.1:8080/v1.0/
  62. swift_store_auth_address = http://192.168.122.14:8080/auth/v1.0/
  63.  
  64. # User to authenticate against the Swift authentication service
  65. swift_store_user = admin:admin
  66.  
  67. # Auth key for the user authenticating against the
  68. # Swift authentication service
  69. swift_store_key = admin
  70.  
  71. # Container within the account that the account should use
  72. # for storing images in Swift
  73. swift_store_container = glance
  74.  
  75. # Do we create the container if it does not exist?
  76. swift_store_create_container_on_put = True
  77.  
  78. # What size, in MB, should Glance start chunking image files
  79. # and do a large object manifest in Swift? By default, this is
  80. # the maximum object size in Swift, which is 5GB
  81. swift_store_large_object_size = 5120
  82.  
  83. # When doing a large object manifest, what size, in MB, should
  84. # Glance write chunks to Swift? This amount of data is written
  85. # to a temporary disk buffer during the process of chunking
  86. # the image file, and the default is 200MB
  87. swift_store_large_object_chunk_size = 200
  88.  
  89. # Whether to use ServiceNET to communicate with the Swift storage servers.
  90. # (If you aren't RACKSPACE, leave this False!)
  91. #
  92. # To use ServiceNET for authentication, prefix hostname of
  93. # `swift_store_auth_address` with 'snet-'.
  94. # Ex. https://example.com/v1.0/ -> https://snet-example.com/v1.0/
  95. swift_enable_snet = False
  96.  
  97. # ============ S3 Store Options =============================
  98.  
  99. # Address where the S3 authentication service lives
  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 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 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 = 999888777666
  175.  
  176. [filter:keystone_shim]
  177. context_class = glance.registry.context.RequestContext
  178. paste.filter_factory = keystone.middleware.glance_auth_token:filter_factory
  179.  
  180. #[filter:auth_context]
  181. #paste.filter_factory = keystone.middleware.glance_auth_token:filter_factory
  182.  
  183. #[pipeline:glance-api]
  184. #pipeline = versionnegotiation context apiv1app
  185.  
  186. #[pipeline:glance-api]
  187. #pipeline = versionnegotiation authtoken auth-context apiv1app
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement