summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorZhao Chao <zhaochao1984@gmail.com>2018-02-12 15:19:58 +0800
committerZhao Chao <zhaochao1984@gmail.com>2018-02-12 18:11:22 +0800
commit71ebd353ca79088dd737d5651829ef51829d67dc (patch)
treeeabf21c4f45593ecd9f593cc02fd2a69cfb401d7 /tools
parentf0c03c114e93cd580f74d4c31d51760b7a511d29 (diff)
downloadtrove-71ebd353ca79088dd737d5651829ef51829d67dc.tar.gz
Generate policy sample file automatically.
A new entrypoint in setup.cfg and a config file are added for using olso.policy helper script to generate the sample file. A new tox target also is added to simplify the environment setting up. Now policy sample file can be generated automatically, so the in-repo sample file is no longer needed. Co-Authored-By: Andrew Laski <andrew@lascii.com> Partial-Implements: blueprint policy-in-code Change-Id: Ic336fa154ccc05b5e9db3a8e751a484b1cc5aa9c Signed-off-by: Zhao Chao <zhaochao1984@gmail.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/trove-policy-generator.conf3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/trove-policy-generator.conf b/tools/trove-policy-generator.conf
new file mode 100644
index 00000000..c24d8c85
--- /dev/null
+++ b/tools/trove-policy-generator.conf
@@ -0,0 +1,3 @@
+[DEFAULT]
+output_file = etc/trove/policy.yaml.sample
+namespace = trove