Advertisement
Guest User

Untitled

a guest
Oct 26th, 2011
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.44 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 = True
  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 = swift
  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 = localhost
  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 = 10.103.0.81:5000/v1.0/
  60.  
  61. # User to authenticate against the Swift authentication service
  62. swift_store_user = cloudena
  63.  
  64. # Auth key for the user authenticating against the
  65. # Swift authentication service
  66. swift_store_key = cloudena
  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 = True
  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. s3_store_host = 127.0.0.1:8080/v1.0/
  98.  
  99. # User to authenticate against the S3 authentication service
  100. s3_store_access_key = <20-char AWS access key>
  101.  
  102. # Auth key for the user authenticating against the
  103. # S3 authentication service
  104. s3_store_secret_key = <40-char AWS secret key>
  105.  
  106. # Container within the account that the account should use
  107. # for storing images in S3. Note that S3 has a flat namespace,
  108. # so you need a unique bucket name for your glance images. An
  109. # easy way to do this is append your AWS access key to "glance".
  110. # S3 buckets in AWS *must* be lowercased, so remember to lowercase
  111. # your AWS access key if you use it in your bucket name below!
  112. s3_store_bucket = <lowercased 20-char aws access key>glance
  113.  
  114. # Do we create the bucket if it does not exist?
  115. s3_store_create_bucket_on_put = False
  116.  
  117. # ============ Image Cache Options ========================
  118.  
  119. image_cache_enabled = False
  120.  
  121. # Directory that the Image Cache writes data to
  122. # Make sure this is also set in glance-pruner.conf
  123. image_cache_datadir = /var/lib/glance/image-cache/
  124.  
  125. # Number of seconds after which we should consider an incomplete image to be
  126. # stalled and eligible for reaping
  127. image_cache_stall_timeout = 86400
  128.  
  129. # ============ Delayed Delete Options =============================
  130.  
  131. # Turn on/off delayed delete
  132. delayed_delete = False
  133.  
  134. [pipeline:glance-api]
  135. pipeline = versionnegotiation authtoken context apiv1app
  136.  
  137. # To enable Image Cache Management API replace pipeline with below:
  138. # pipeline = versionnegotiation authtoken context imagecache apiv1app
  139.  
  140. [pipeline:versions]
  141. pipeline = versionsapp
  142.  
  143. [app:versionsapp]
  144. paste.app_factory = glance.api.versions:app_factory
  145.  
  146. [app:apiv1app]
  147. paste.app_factory = glance.api.v1:app_factory
  148.  
  149. [filter:versionnegotiation]
  150. paste.filter_factory = glance.api.middleware.version_negotiation:filter_factory
  151.  
  152. [filter:imagecache]
  153. paste.filter_factory = glance.api.middleware.image_cache:filter_factory
  154.  
  155. [filter:context]
  156. paste.filter_factory = glance.common.context:filter_factory
  157.  
  158. [filter:authtoken]
  159. paste.filter_factory = keystone.middleware.auth_token:filter_factory
  160. service_protocol = http
  161. service_host = 10.103.0.81
  162. service_port = 5000
  163. auth_host = 10.103.0.81
  164. auth_port = 35357
  165. auth_protocol = http
  166. auth_uri = http://10.103.0.81:5000/
  167. admin_token = cloudena
  168.  
  169.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement