Policy in code: Update the related doc

This patch update the policy file generator guide.
And remove the realted action in devstack as well.

Change-Id: I7bd6aabe1d05245a1203380863c0444f6ea021f6
bp: policy-and-docs-in-code
This commit is contained in:
wangxiyuan 2017-11-06 15:08:54 +08:00 committed by gecong
parent 8ccb5adc19
commit 74245e13ec
3 changed files with 8 additions and 7 deletions

View File

@ -75,10 +75,6 @@ function configure_zaqar {
[ ! -d $ZAQAR_CONF_DIR ] && sudo mkdir -m 755 -p $ZAQAR_CONF_DIR
sudo chown $USER $ZAQAR_CONF_DIR
if [[ -f $ZAQAR_DIR/etc/policy.json.sample ]]; then
cp -p $ZAQAR_DIR/etc/policy.json.sample $ZAQAR_POLICY_CONF
fi
[ ! -d $ZAQAR_API_LOG_DIR ] && sudo mkdir -m 755 -p $ZAQAR_API_LOG_DIR
sudo chown $USER $ZAQAR_API_LOG_DIR

View File

@ -0,0 +1,8 @@
To generate the sample policy.yaml file, run the following command from the top
level of the zaqar directory:
tox -egenpolicy
Or run the command directly:
oslopolicy-sample-generator --config-file etc/oslo-config-generator/zaqar-policy-generator.conf
The output file will be in etc folder, named "zaqar.policy.yaml.sample" by
default.

View File

@ -1,3 +0,0 @@
{
"default": "rule:admin_or_owner"
}