diff options
author | Andrew Laski <andrew@lascii.com> | 2016-05-25 17:18:37 -0400 |
---|---|---|
committer | Andrew Laski <andrew@lascii.com> | 2016-06-08 15:12:53 -0400 |
commit | 85ebe9eb5f230de79bd46ec1feb44c962fa4a2ee (patch) | |
tree | 2e5b0d56f56fceef83eaade4e9919037309a087c /setup.cfg | |
parent | 474c120ae6de61c1f46523baa0fef11b5e537cf8 (diff) | |
download | oslo-policy-85ebe9eb5f230de79bd46ec1feb44c962fa4a2ee.tar.gz |
Add helper scripts for generating policy info
This adds two helper scripts that consuming projects can use to get
information that helps deployers.
The oslopolicy-policy-generator script looks at an entry_point for a
configured policy.Enforcer and outputs a yaml formatted policy file for
that configuration. This is a merge of registered rules and configured
rules.
The oslopolicy_list_redundant script looks at an entry_point for a
configured policy.Enforcer and outputs a yaml formatted policy file with
a list of policies where the registered default matches the project
configuration. These are policies that can be removed from the
configuration file(s) without affecting policy.
Change-Id: Ibe4e6c9288768bcc8f532e384524580c57e58275
Implements: bp policy-sample-generation
Diffstat (limited to 'setup.cfg')
-rw-r--r-- | setup.cfg | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -33,6 +33,8 @@ oslo.config.opts = console_scripts = oslopolicy-checker = oslo_policy.shell:main oslopolicy-sample-generator = oslo_policy.generator:generate_sample + oslopolicy-policy-generator = oslo_policy.generator:genarate_policy + oslopolicy-list-redundant = oslo_policy.generator:list_redundant [build_sphinx] source-dir = doc/source |