summaryrefslogtreecommitdiff
path: root/setup.cfg
diff options
context:
space:
mode:
authorAndrew Laski <andrew@lascii.com>2016-05-25 17:18:37 -0400
committerAndrew Laski <andrew@lascii.com>2016-06-08 15:12:53 -0400
commit85ebe9eb5f230de79bd46ec1feb44c962fa4a2ee (patch)
tree2e5b0d56f56fceef83eaade4e9919037309a087c /setup.cfg
parent474c120ae6de61c1f46523baa0fef11b5e537cf8 (diff)
downloadoslo-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.cfg2
1 files changed, 2 insertions, 0 deletions
diff --git a/setup.cfg b/setup.cfg
index 1e812fb..63375bb 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -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