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:
parent
8ccb5adc19
commit
74245e13ec
@ -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
|
||||
|
||||
|
8
etc/README-policy.json.sample
Normal file
8
etc/README-policy.json.sample
Normal 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.
|
@ -1,3 +0,0 @@
|
||||
{
|
||||
"default": "rule:admin_or_owner"
|
||||
}
|
Loading…
Reference in New Issue
Block a user