Anthony Young | f12d3ab | 2011-09-20 00:33:51 -0700 | [diff] [blame] | 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 = 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! |
Anthony Young | a531b77 | 2011-09-20 09:59:54 -0700 | [diff] [blame] | 27 | log_file = %DEST%/glance/api.log |
Anthony Young | f12d3ab | 2011-09-20 00:33:51 -0700 | [diff] [blame] | 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 |
Anthony Young | 3657ab3 | 2011-09-20 11:04:15 -0700 | [diff] [blame] | 54 | filesystem_store_datadir = %DEST%/glance/images/ |
Anthony Young | f12d3ab | 2011-09-20 00:33:51 -0700 | [diff] [blame] | 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 | 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 | # Delayed delete time in seconds |
| 135 | scrub_time = 43200 |
| 136 | |
| 137 | # Directory that the scrubber will use to remind itself of what to delete |
| 138 | # Make sure this is also set in glance-scrubber.conf |
| 139 | scrubber_datadir = /var/lib/glance/scrubber |
| 140 | |
| 141 | [pipeline:glance-api] |
| 142 | #pipeline = versionnegotiation context apiv1app |
| 143 | # NOTE: use the following pipeline for keystone |
| 144 | pipeline = versionnegotiation authtoken context apiv1app |
| 145 | |
| 146 | # To enable Image Cache Management API replace pipeline with below: |
| 147 | # pipeline = versionnegotiation context imagecache apiv1app |
| 148 | # NOTE: use the following pipeline for keystone auth (with caching) |
| 149 | # pipeline = versionnegotiation authtoken context imagecache apiv1app |
| 150 | |
| 151 | [pipeline:versions] |
| 152 | pipeline = versionsapp |
| 153 | |
| 154 | [app:versionsapp] |
| 155 | paste.app_factory = glance.api.versions:app_factory |
| 156 | |
| 157 | [app:apiv1app] |
| 158 | paste.app_factory = glance.api.v1:app_factory |
| 159 | |
| 160 | [filter:versionnegotiation] |
| 161 | paste.filter_factory = glance.api.middleware.version_negotiation:filter_factory |
| 162 | |
| 163 | [filter:imagecache] |
| 164 | paste.filter_factory = glance.api.middleware.image_cache:filter_factory |
| 165 | |
| 166 | [filter:context] |
| 167 | paste.filter_factory = glance.common.context:filter_factory |
| 168 | |
| 169 | [filter:authtoken] |
| 170 | paste.filter_factory = keystone.middleware.auth_token:filter_factory |
| 171 | service_protocol = http |
| 172 | service_host = 127.0.0.1 |
| 173 | service_port = 5000 |
| 174 | auth_host = 127.0.0.1 |
| 175 | auth_port = 5001 |
| 176 | auth_protocol = http |
| 177 | auth_uri = http://127.0.0.1:5000/ |
| 178 | admin_token = 999888777666 |