cinder/etc/cinder/README-policy.generate.md
TommyLike 43a3152581 [policy in code] Add support for attachment resource
This is the basic patch which consits of the framework
code for default policy in code feature as well as
support in attachment resource.

Change-Id: Ie3ff068e61ea8e0e8fff78deb732e183e036a10c
Partial-Implements: blueprint policy-in-code
2017-09-26 03:19:20 +00:00

427 B

Generate policy file

To generate the sample policy yaml file, run the following command from the top level of the cinder directory:

tox -egenpolicy

Use generated policy file

Cinder recognizes /etc/cinder/policy.yaml as the default policy file. To specify your own policy file in order to overwrite the default policy value, add this in Cinder config file:

[oslo_policy]
policy_file = path/to/policy/file