Advertisement
Guest User

Untitled

a guest
Jan 15th, 2013
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.74 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 scheme should Glance use by default is not specified
  9. # in a request to add a new image to Glance? Known schemes are determined
  10. # by the known_stores option below.
  11. # Default: 'file'
  12. default_store = file
  13.  
  14. # List of which store classes and store class locations are
  15. # currently known to glance at startup.
  16. #known_stores = glance.store.filesystem.Store,
  17. # glance.store.http.Store,
  18. # glance.store.rbd.Store,
  19. # glance.store.s3.Store,
  20. # glance.store.swift.Store,
  21.  
  22.  
  23. # Maximum image size (in bytes) that may be uploaded through the
  24. # Glance API server. Defaults to 1 TB.
  25. # WARNING: this value should only be increased after careful consideration
  26. # and must be set to a value under 8 EB (9223372036854775808).
  27. #image_size_cap = 1099511627776
  28.  
  29. # Address to bind the API server
  30. bind_host = 0.0.0.0
  31.  
  32. # Port the bind the API server to
  33. bind_port = 9292
  34.  
  35. # Log to this file. Make sure you do not set the same log
  36. # file for both the API and registry servers!
  37. log_file = /var/log/glance/api.log
  38.  
  39. # Backlog requests when creating socket
  40. backlog = 4096
  41.  
  42. # TCP_KEEPIDLE value in seconds when creating socket.
  43. # Not supported on OS X.
  44. #tcp_keepidle = 600
  45.  
  46. # SQLAlchemy connection string for the reference implementation
  47. # registry server. Any valid SQLAlchemy connection string is fine.
  48. # See: http://www.sqlalchemy.org/docs/05/reference/sqlalchemy/connections.html#sqlalchemy.create_engine
  49. sql_connection = mysql://glanceUser:glancePass@192.168.100.242/glance
  50.  
  51. [paste_deploy]
  52. flavor = keystone
  53.  
  54. # Period in seconds after which SQLAlchemy should reestablish its connection
  55. # to the database.
  56. #
  57. # MySQL uses a default `wait_timeout` of 8 hours, after which it will drop
  58. # idle connections. This can result in 'MySQL Gone Away' exceptions. If you
  59. # notice this, you can lower this value to ensure that SQLAlchemy reconnects
  60. # before MySQL can drop the connection.
  61. sql_idle_timeout = 3600
  62.  
  63. # Number of Glance API worker processes to start.
  64. # On machines with more than one CPU increasing this value
  65. # may improve performance (especially if using SSL with
  66. # compression turned on). It is typically recommended to set
  67. # this value to the number of CPUs present on your machine.
  68. workers = 1
  69.  
  70. # Role used to identify an authenticated user as administrator
  71. #admin_role = admin
  72.  
  73. # Allow unauthenticated users to access the API with read-only
  74. # privileges. This only applies when using ContextMiddleware.
  75. #allow_anonymous_access = False
  76.  
  77. # Allow access to version 1 of glance api
  78. #enable_v1_api = True
  79.  
  80. # Allow access to version 2 of glance api
  81. #enable_v2_api = True
  82.  
  83. # ================= Syslog Options ============================
  84.  
  85. # Send logs to syslog (/dev/log) instead of to file specified
  86. # by `log_file`
  87. use_syslog = False
  88.  
  89. # Facility to use. If unset defaults to LOG_USER.
  90. #syslog_log_facility = LOG_LOCAL0
  91.  
  92. # ================= SSL Options ===============================
  93.  
  94. # Certificate file to use when starting API server securely
  95. #cert_file = /path/to/certfile
  96.  
  97. # Private key file to use when starting API server securely
  98. #key_file = /path/to/keyfile
  99.  
  100. # CA certificate file to use to verify connecting clients
  101. #ca_file = /path/to/cafile
  102.  
  103. # ================= Security Options ==========================
  104.  
  105. # AES key for encrypting store 'location' metadata, including
  106. # -- if used -- Swift or S3 credentials
  107. # Should be set to a random string of length 16, 24 or 32 bytes
  108. #metadata_encryption_key = <16, 24 or 32 char registry metadata key>
  109.  
  110. # ============ Registry Options ===============================
  111.  
  112. # Address to find the registry server
  113. registry_host = 0.0.0.0
  114.  
  115. # Port the registry server is listening on
  116. registry_port = 9191
  117.  
  118. # What protocol to use when connecting to the registry server?
  119. # Set to https for secure HTTP communication
  120. registry_client_protocol = http
  121.  
  122. # The path to the key file to use in SSL connections to the
  123. # registry server, if any. Alternately, you may set the
  124. # GLANCE_CLIENT_KEY_FILE environ variable to a filepath of the key file
  125. #registry_client_key_file = /path/to/key/file
  126.  
  127. # The path to the cert file to use in SSL connections to the
  128. # registry server, if any. Alternately, you may set the
  129. # GLANCE_CLIENT_CERT_FILE environ variable to a filepath of the cert file
  130. #registry_client_cert_file = /path/to/cert/file
  131.  
  132. # The path to the certifying authority cert file to use in SSL connections
  133. # to the registry server, if any. Alternately, you may set the
  134. # GLANCE_CLIENT_CA_FILE environ variable to a filepath of the CA cert file
  135. #registry_client_ca_file = /path/to/ca/file
  136.  
  137. # ============ Notification System Options =====================
  138.  
  139. # Notifications can be sent when images are create, updated or deleted.
  140. # There are three methods of sending notifications, logging (via the
  141. # log_file directive), rabbit (via a rabbitmq queue), qpid (via a Qpid
  142. # message queue), or noop (no notifications sent, the default)
  143. notifier_strategy = noop
  144.  
  145. # Configuration options if sending notifications via rabbitmq (these are
  146. # the defaults)
  147. rabbit_host = localhost
  148. rabbit_port = 5672
  149. rabbit_use_ssl = false
  150. rabbit_userid = guest
  151. rabbit_password = guest
  152. rabbit_virtual_host = /
  153. rabbit_notification_exchange = glance
  154. rabbit_notification_topic = glance_notifications
  155. rabbit_durable_queues = False
  156.  
  157. # Configuration options if sending notifications via Qpid (these are
  158. # the defaults)
  159. qpid_notification_exchange = glance
  160. qpid_notification_topic = glance_notifications
  161. qpid_host = localhost
  162. qpid_port = 5672
  163. qpid_username =
  164. qpid_password =
  165. qpid_sasl_mechanisms =
  166. qpid_reconnect_timeout = 0
  167. qpid_reconnect_limit = 0
  168. qpid_reconnect_interval_min = 0
  169. qpid_reconnect_interval_max = 0
  170. qpid_reconnect_interval = 0
  171. qpid_heartbeat = 5
  172. # Set to 'ssl' to enable SSL
  173. qpid_protocol = tcp
  174. qpid_tcp_nodelay = True
  175.  
  176. # ============ Filesystem Store Options ========================
  177.  
  178. # Directory that the Filesystem backend store
  179. # writes image data to
  180. filesystem_store_datadir = /var/lib/glance/images/
  181.  
  182. # ============ Swift Store Options =============================
  183.  
  184. # Version of the authentication service to use
  185. # Valid versions are '2' for keystone and '1' for swauth and rackspace
  186. swift_store_auth_version = 2
  187.  
  188. # Address where the Swift authentication service lives
  189. # Valid schemes are 'http://' and 'https://'
  190. # If no scheme specified, default to 'https://'
  191. # For swauth, use something like '127.0.0.1:8080/v1.0/'
  192. swift_store_auth_address = 127.0.0.1:5000/v2.0/
  193.  
  194. # User to authenticate against the Swift authentication service
  195. # If you use Swift authentication service, set it to 'account':'user'
  196. # where 'account' is a Swift storage account and 'user'
  197. # is a user in that account
  198. swift_store_user = jdoe:jdoe
  199.  
  200. # Auth key for the user authenticating against the
  201. # Swift authentication service
  202. swift_store_key = a86850deb2742ec3cb41518e26aa2d89
  203.  
  204. # Container within the account that the account should use
  205. # for storing images in Swift
  206. swift_store_container = glance
  207.  
  208. # Do we create the container if it does not exist?
  209. swift_store_create_container_on_put = False
  210.  
  211. # What size, in MB, should Glance start chunking image files
  212. # and do a large object manifest in Swift? By default, this is
  213. # the maximum object size in Swift, which is 5GB
  214. swift_store_large_object_size = 5120
  215.  
  216. # When doing a large object manifest, what size, in MB, should
  217. # Glance write chunks to Swift? This amount of data is written
  218. # to a temporary disk buffer during the process of chunking
  219. # the image file, and the default is 200MB
  220. swift_store_large_object_chunk_size = 200
  221.  
  222. # Whether to use ServiceNET to communicate with the Swift storage servers.
  223. # (If you aren't RACKSPACE, leave this False!)
  224. #
  225. # To use ServiceNET for authentication, prefix hostname of
  226. # `swift_store_auth_address` with 'snet-'.
  227. # Ex. https://example.com/v1.0/ -> https://snet-example.com/v1.0/
  228. swift_enable_snet = False
  229.  
  230. # If set to True enables multi-tenant storage mode which causes Glance images
  231. # to be stored in tenant specific Swift accounts.
  232. #swift_store_multi_tenant = False
  233.  
  234. # A list of tenants that will be granted read/write access on all Swift
  235. # containers created by Glance in multi-tenant mode.
  236. #swift_store_admin_tenants = []
  237.  
  238. # The region of the swift endpoint to be used for single tenant. This setting
  239. # is only necessary if the tenant has multiple swift endpoints.
  240. #swift_store_region =
  241.  
  242. # ============ S3 Store Options =============================
  243.  
  244. # Address where the S3 authentication service lives
  245. # Valid schemes are 'http://' and 'https://'
  246. # If no scheme specified, default to 'http://'
  247. s3_store_host = 127.0.0.1:8080/v1.0/
  248.  
  249. # User to authenticate against the S3 authentication service
  250. s3_store_access_key = <20-char AWS access key>
  251.  
  252. # Auth key for the user authenticating against the
  253. # S3 authentication service
  254. s3_store_secret_key = <40-char AWS secret key>
  255.  
  256. # Container within the account that the account should use
  257. # for storing images in S3. Note that S3 has a flat namespace,
  258. # so you need a unique bucket name for your glance images. An
  259. # easy way to do this is append your AWS access key to "glance".
  260. # S3 buckets in AWS *must* be lowercased, so remember to lowercase
  261. # your AWS access key if you use it in your bucket name below!
  262. s3_store_bucket = <lowercased 20-char aws access key>glance
  263.  
  264. # Do we create the bucket if it does not exist?
  265. s3_store_create_bucket_on_put = False
  266.  
  267. # When sending images to S3, the data will first be written to a
  268. # temporary buffer on disk. By default the platform's temporary directory
  269. # will be used. If required, an alternative directory can be specified here.
  270. #s3_store_object_buffer_dir = /path/to/dir
  271.  
  272. # When forming a bucket url, boto will either set the bucket name as the
  273. # subdomain or as the first token of the path. Amazon's S3 service will
  274. # accept it as the subdomain, but Swift's S3 middleware requires it be
  275. # in the path. Set this to 'path' or 'subdomain' - defaults to 'subdomain'.
  276. #s3_store_bucket_url_format = subdomain
  277.  
  278. # ============ RBD Store Options =============================
  279.  
  280. # Ceph configuration file path
  281. # If using cephx authentication, this file should
  282. # include a reference to the right keyring
  283. # in a client.<USER> section
  284. rbd_store_ceph_conf = /etc/ceph/ceph.conf
  285.  
  286. # RADOS user to authenticate as (only applicable if using cephx)
  287. rbd_store_user = glance
  288.  
  289. # RADOS pool in which images are stored
  290. rbd_store_pool = images
  291.  
  292. # Images will be chunked into objects of this size (in megabytes).
  293. # For best performance, this should be a power of two
  294. rbd_store_chunk_size = 8
  295.  
  296. # ============ Delayed Delete Options =============================
  297.  
  298. # Turn on/off delayed delete
  299. delayed_delete = False
  300.  
  301. # Delayed delete time in seconds
  302. scrub_time = 43200
  303.  
  304. # Directory that the scrubber will use to remind itself of what to delete
  305. # Make sure this is also set in glance-scrubber.conf
  306. scrubber_datadir = /var/lib/glance/scrubber
  307.  
  308. # =============== Image Cache Options =============================
  309.  
  310. # Base directory that the Image Cache uses
  311. image_cache_dir = /var/lib/glance/image-cache/
  312.  
  313. [keystone_authtoken]
  314. auth_host = 127.0.0.1
  315. auth_port = 35357
  316. auth_protocol = http
  317. admin_tenant_name = %SERVICE_TENANT_NAME%
  318. admin_user = %SERVICE_USER%
  319. admin_password = %SERVICE_PASSWORD%
  320.  
  321. [paste_deploy]
  322. # Name of the paste configuration file that defines the available pipelines
  323. #config_file = glance-api-paste.ini
  324.  
  325. # Partial name of a pipeline in your paste configuration file with the
  326. # service name removed. For example, if your paste section name is
  327. # [pipeline:glance-api-keystone], you would configure the flavor below
  328. # as 'keystone'.
  329. #flavor=
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement