monasca-api/config-generator
Dobroslaw Zybort 9ffaadf2ba Improve docs about configuring oslo.policy
Change-Id: I73292ae87ee38283e441b635e81bffb0861cd7cf
2018-10-09 13:58:53 +02:00
..
README.rst Improve docs about configuring oslo.policy 2018-10-09 13:58:53 +02:00
__init__.py Config-generator for monasca-api 2017-08-28 06:58:57 +00:00
api-config.conf Using oslo.policy for monasca-api 2018-06-05 12:25:07 +00:00
policy.conf Improve docs about configuring oslo.policy 2018-10-09 13:58:53 +02:00

README.rst

config-generator

To generate sample configuration file execute:

tox -e genconfig

To generate the sample policies execute:

tox -e genpolicy

After generation you will have sample available in etc/api-policy.yaml.sample. It contains default values for all policies. After you change it to suit your needs you will need to change monasca-api configuration to look for the new policy configuration with specific file name. Head to api-config.conf file and then you will need to replace in [oslo_policy] section policy_file to your desired file name (like api-policy.yaml).