Guest User

Untitled

a guest
Nov 25th, 2014
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.34 KB | None | 0 0
  1. [DEFAULT]
  2. # A "shared secret" between keystone and other openstack services
  3. admin_token = password_veryscret
  4.  
  5. # The IP address of the network interface to listen on
  6. # bind_host = 0.0.0.0
  7.  
  8. # The port number which the public service listens on
  9. # public_port = 5000
  10.  
  11. # The port number which the public admin listens on
  12. # admin_port = 35357
  13.  
  14. # The base endpoint URLs for keystone that are advertised to clients
  15. # (NOTE: this does NOT affect how keystone listens for connections)
  16. # public_endpoint = http://localhost:%(public_port)d/
  17. # admin_endpoint = http://localhost:%(admin_port)d/
  18.  
  19. # The port number which the OpenStack Compute service listens on
  20. # compute_port = 8774
  21.  
  22. # Path to your policy definition containing identity actions
  23. # policy_file = policy.json
  24.  
  25. # Rule to check if no matching policy definition is found
  26. # FIXME(dolph): This should really be defined as [policy] default_rule
  27. # policy_default_rule = admin_required
  28.  
  29. # Role for migrating membership relationships
  30. # During a SQL upgrade, the following values will be used to create a new role
  31. # that will replace records in the user_tenant_membership table with explicit
  32. # role grants. After migration, the member_role_id will be used in the API
  33. # add_user_to_project, and member_role_name will be ignored.
  34. # member_role_id = 9fe2ff9ee4384b1894a90878d3e92bab
  35. # member_role_name = _member_
  36.  
  37. # === Logging Options ===
  38. # Print debugging output
  39. # (includes plaintext request logging, potentially including passwords)
  40. debug = True
  41.  
  42. # Print more verbose output
  43. verbose = True
  44.  
  45. # Name of log file to output to. If not set, logging will go to stdout.
  46. log_file = keystone.log
  47.  
  48. # The directory to keep log files in (will be prepended to --logfile)
  49. log_dir = /var/log/keystone
  50.  
  51. # Use syslog for logging.
  52. # use_syslog = False
  53.  
  54. # syslog facility to receive log lines
  55. # syslog_log_facility = LOG_USER
  56.  
  57. # If this option is specified, the logging configuration file specified is
  58. # used and overrides any other logging options specified. Please see the
  59. # Python logging module documentation for details on logging configuration
  60. # files.
  61. # log_config = logging.conf
  62.  
  63. # A logging.Formatter log message format string which may use any of the
  64. # available logging.LogRecord attributes.
  65. # log_format = %(asctime)s %(levelname)8s [%(name)s] %(message)s
  66.  
  67. # Format string for %(asctime)s in log records.
  68. # log_date_format = %Y-%m-%d %H:%M:%S
  69.  
  70. # onready allows you to send a notification when the process is ready to serve
  71. # For example, to have it notify using systemd, one could set shell command:
  72. # onready = systemd-notify --ready
  73. # or a module with notify() method:
  74. # onready = keystone.common.systemd
  75. public_port=5000
  76. compute_port=3000
  77. #debug=false
  78. bind_host=0.0.0.0
  79. admin_port=35357
  80. #verbose=false
  81.  
  82. [sql]
  83. # The SQLAlchemy connection string used to connect to the database
  84. connection = mysql://keystone:[email protected]/keystone
  85.  
  86. # the timeout before idle sql connections are reaped
  87. # idle_timeout = 200
  88. idle_timeout=200
  89.  
  90. [identity]
  91. # driver = keystone.identity.backends.sql.Identity
  92.  
  93. # This references the domain to use for all Identity API v2 requests (which are
  94. # not aware of domains). A domain with this ID will be created for you by
  95. # keystone-manage db_sync in migration 008. The domain referenced by this ID
  96. # cannot be deleted on the v3 API, to prevent accidentally breaking the v2 API.
  97. # There is nothing special about this domain, other than the fact that it must
  98. # exist to order to maintain support for your v2 clients.
  99. # default_domain_id = default
  100.  
  101. [trust]
  102. # driver = keystone.trust.backends.sql.Trust
  103.  
  104. # delegation and impersonation features can be optionally disabled
  105. # enabled = True
  106.  
  107. [catalog]
  108. # dynamic, sql-based backend (supports API/CLI-based management commands)
  109. # driver = keystone.catalog.backends.sql.Catalog
  110.  
  111. # static, file-based backend (does *NOT* support any management commands)
  112. # driver = keystone.catalog.backends.templated.TemplatedCatalog
  113.  
  114. template_file = /etc/keystone/default_catalog.templates
  115. driver=keystone.catalog.backends.sql.Catalog
  116.  
  117. [token]
  118. # driver = keystone.token.backends.kvs.Token
  119.  
  120. # Amount of time a token should remain valid (in seconds)
  121. # expiration = 86400
  122. driver=keystone.token.backends.sql.Token
  123. expiration=86400
  124.  
  125. [policy]
  126. # driver = keystone.policy.backends.sql.Policy
  127.  
  128. [ec2]
  129. # driver = keystone.contrib.ec2.backends.kvs.Ec2
  130. driver=keystone.contrib.ec2.backends.sql.Ec2
  131.  
  132. [ssl]
  133. #enable = True
  134. #certfile = /etc/keystone/ssl/certs/keystone.pem
  135. #keyfile = /etc/keystone/ssl/private/keystonekey.pem
  136. #ca_certs = /etc/keystone/ssl/certs/ca.pem
  137. #cert_required = True
  138.  
  139. [signing]
  140. #token_format = PKI
  141. #certfile = /etc/keystone/ssl/certs/signing_cert.pem
  142. #keyfile = /etc/keystone/ssl/private/signing_key.pem
  143. #ca_certs = /etc/keystone/ssl/certs/ca.pem
  144. #key_size = 1024
  145. #valid_days = 3650
  146. #ca_password = None
  147. token_format=UUID
  148.  
  149. [ldap]
  150. # url = ldap://localhost
  151. # user = dc=Manager,dc=example,dc=com
  152. # password = None
  153. # suffix = cn=example,cn=com
  154. # use_dumb_member = False
  155. # allow_subtree_delete = False
  156. # dumb_member = cn=dumb,dc=example,dc=com
  157.  
  158. # Maximum results per page; a value of zero ('0') disables paging (default)
  159. # page_size = 0
  160.  
  161. # The LDAP dereferencing option for queries. This can be either 'never',
  162. # 'searching', 'always', 'finding' or 'default'. The 'default' option falls
  163. # back to using default dereferencing configured by your ldap.conf.
  164. # alias_dereferencing = default
  165.  
  166. # The LDAP scope for queries, this can be either 'one'
  167. # (onelevel/singleLevel) or 'sub' (subtree/wholeSubtree)
  168. # query_scope = one
  169.  
  170. # user_tree_dn = ou=Users,dc=example,dc=com
  171. # user_filter =
  172. # user_objectclass = inetOrgPerson
  173. # user_domain_id_attribute = businessCategory
  174. # user_id_attribute = cn
  175. # user_name_attribute = sn
  176. # user_mail_attribute = email
  177. # user_pass_attribute = userPassword
  178. # user_enabled_attribute = enabled
  179. # user_enabled_mask = 0
  180. # user_enabled_default = True
  181. # user_attribute_ignore = tenant_id,tenants
  182. # user_allow_create = True
  183. # user_allow_update = True
  184. # user_allow_delete = True
  185. # user_enabled_emulation = False
  186. # user_enabled_emulation_dn =
  187.  
  188. # tenant_tree_dn = ou=Groups,dc=example,dc=com
  189. # tenant_filter =
  190. # tenant_objectclass = groupOfNames
  191. # tenant_domain_id_attribute = businessCategory
  192. # tenant_id_attribute = cn
  193. # tenant_member_attribute = member
  194. # tenant_name_attribute = ou
  195. # tenant_desc_attribute = desc
  196. # tenant_enabled_attribute = enabled
  197. # tenant_attribute_ignore =
  198. # tenant_allow_create = True
  199. # tenant_allow_update = True
  200. # tenant_allow_delete = True
  201. # tenant_enabled_emulation = False
  202. # tenant_enabled_emulation_dn =
  203.  
  204. # role_tree_dn = ou=Roles,dc=example,dc=com
  205. # role_filter =
  206. # role_objectclass = organizationalRole
  207. # role_id_attribute = cn
  208. # role_name_attribute = ou
  209. # role_member_attribute = roleOccupant
  210. # role_attribute_ignore =
  211. # role_allow_create = True
  212. # role_allow_update = True
  213. # role_allow_delete = True
  214.  
  215. # group_tree_dn =
  216. # group_filter =
  217. # group_objectclass = groupOfNames
  218. # group_id_attribute = cn
  219. # group_name_attribute = ou
  220. # group_member_attribute = member
  221. # group_desc_attribute = desc
  222. # group_attribute_ignore =
  223. # group_allow_create = True
  224. # group_allow_update = True
  225. # group_allow_delete = True
  226.  
  227. # ldap TLS options
  228. # if both tls_cacertfile and tls_cacertdir are set then
  229. # tls_cacertfile will be used and tls_cacertdir is ignored
  230. # valid options for tls_req_cert are demand, never, and allow
  231. # use_tls = False
  232. # tls_cacertfile =
  233. # tls_cacertdir =
  234. # tls_req_cert = demand
  235.  
  236. [auth]
  237. methods = password,token
  238. password = keystone.auth.plugins.password.Password
  239. token = keystone.auth.plugins.token.Token
  240.  
  241. [filter:debug]
  242. paste.filter_factory = keystone.common.wsgi:Debug.factory
  243.  
  244. [filter:token_auth]
  245. paste.filter_factory = keystone.middleware:TokenAuthMiddleware.factory
  246.  
  247. [filter:admin_token_auth]
  248. paste.filter_factory = keystone.middleware:AdminTokenAuthMiddleware.factory
  249.  
  250. [filter:xml_body]
  251. paste.filter_factory = keystone.middleware:XmlBodyMiddleware.factory
  252.  
  253. [filter:json_body]
  254. paste.filter_factory = keystone.middleware:JsonBodyMiddleware.factory
  255.  
  256. [filter:user_crud_extension]
  257. paste.filter_factory = keystone.contrib.user_crud:CrudExtension.factory
  258.  
  259. [filter:crud_extension]
  260. paste.filter_factory = keystone.contrib.admin_crud:CrudExtension.factory
  261.  
  262. [filter:ec2_extension]
  263. paste.filter_factory = keystone.contrib.ec2:Ec2Extension.factory
  264.  
  265. [filter:s3_extension]
  266. paste.filter_factory = keystone.contrib.s3:S3Extension.factory
  267.  
  268. [filter:url_normalize]
  269. paste.filter_factory = keystone.middleware:NormalizingFilter.factory
  270.  
  271. [filter:sizelimit]
  272. paste.filter_factory = keystone.middleware:RequestBodySizeLimiter.factory
  273.  
  274. [filter:stats_monitoring]
  275. paste.filter_factory = keystone.contrib.stats:StatsMiddleware.factory
  276.  
  277. [filter:stats_reporting]
  278. paste.filter_factory = keystone.contrib.stats:StatsExtension.factory
  279.  
  280. [filter:access_log]
  281. paste.filter_factory = keystone.contrib.access:AccessLogMiddleware.factory
  282.  
  283. [app:public_service]
  284. paste.app_factory = keystone.service:public_app_factory
  285.  
  286. [app:service_v3]
  287. paste.app_factory = keystone.service:v3_app_factory
  288.  
  289. [app:admin_service]
  290. paste.app_factory = keystone.service:admin_app_factory
  291.  
  292. [pipeline:public_api]
  293. pipeline = access_log sizelimit stats_monitoring url_normalize token_auth admin_token_auth xml_body json_body debug ec2_extension user_crud_extension public_service
  294.  
  295. [pipeline:admin_api]
  296. pipeline = access_log sizelimit stats_monitoring url_normalize token_auth admin_token_auth xml_body json_body debug stats_reporting ec2_extension s3_extension crud_extension admin_service
  297.  
  298. [pipeline:api_v3]
  299. pipeline = access_log sizelimit stats_monitoring url_normalize token_auth admin_token_auth xml_body json_body debug stats_reporting ec2_extension s3_extension service_v3
  300.  
  301. [app:public_version_service]
  302. paste.app_factory = keystone.service:public_version_app_factory
  303.  
  304. [app:admin_version_service]
  305. paste.app_factory = keystone.service:admin_version_app_factory
  306.  
  307. [pipeline:public_version_api]
  308. pipeline = access_log sizelimit stats_monitoring url_normalize xml_body public_version_service
  309.  
  310. [pipeline:admin_version_api]
  311. pipeline = access_log sizelimit stats_monitoring url_normalize xml_body admin_version_service
  312.  
  313. [composite:main]
  314. use = egg:Paste#urlmap
  315. /v2.0 = public_api
  316. /v3 = api_v3
  317. / = public_version_api
  318.  
  319. [composite:admin]
  320. use = egg:Paste#urlmap
  321. /v2.0 = admin_api
  322. /v3 = api_v3
  323. / = admin_version_api
Advertisement
Add Comment
Please, Sign In to add comment