Update the install guide about policy json file

Since the policy json file has been removed. So the
installation guide should also be updated.

Change-Id: Ibf158e402fa31702fadf70f27d5db5a5d6814e34
This commit is contained in:
yangzhenyu 2018-01-12 15:38:14 +08:00
parent 764bbb97dd
commit 6801ce8ff6
3 changed files with 46 additions and 7 deletions

View File

@ -268,12 +268,25 @@ Install and configure ``memcached``, ``uWSGI`` and Messaging on the web server
# pip install . -r ./requirements.txt --upgrade --log /tmp/zaqar-pip.log
# pip install --upgrade pymongo gevent uwsgi
#. Copy the Zaqar RBAC policy sample file to the directory ``/etc/zaqar/``:
#. Create Zaqar configiration directory ``/etc/zaqar/``:
.. code-block:: console
# mkdir /etc/zaqar
# cp etc/policy.json.sample /etc/zaqar/policy.json
#. Customize the policy file:
.. code-block:: console
# oslopolicy-sample-generator --config-file etc/oslo-config-generator/zaqar-policy-generator.conf
# cp etc/zaqar.policy.yaml.sample /etc/zaqar/policy.yaml
Edit any item as needed in policy.yaml.
.. note::
By default, if you do not need custom policy file, you do not need to
perform the above steps, then zaqar will use the code's default policy.
#. Create log file:

View File

@ -268,12 +268,25 @@ Install and configure ``memcached``, ``uWSGI`` and Messaging on the web server
# pip install . -r ./requirements.txt --upgrade --log /tmp/zaqar-pip.log
# pip install --upgrade pymongo gevent uwsgi
#. Copy the Zaqar RBAC policy sample file to the directory ``/etc/zaqar/``:
#. Create Zaqar configiration directory ``/etc/zaqar/``:
.. code-block:: console
# mkdir /etc/zaqar
# cp etc/policy.json.sample /etc/zaqar/policy.json
#. Customize the policy file:
.. code-block:: console
# oslopolicy-sample-generator --config-file etc/oslo-config-generator/zaqar-policy-generator.conf
# cp etc/zaqar.policy.yaml.sample /etc/zaqar/policy.yaml
Edit any item as needed in policy.yaml.
.. note::
By default, if you do not need custom policy file, you do not need to
perform the above steps, then zaqar will use the code's default policy.
#. Create log file:

View File

@ -256,12 +256,25 @@ Install and configure ``memcached``, ``uWSGI`` and Messaging on the web server
# pip install . -r ./requirements.txt --upgrade --log /tmp/zaqar-pip.log
# pip install --upgrade pymongo gevent uwsgi
#. Copy the Zaqar RBAC policy sample file to the directory ``/etc/zaqar/``:
#. Create Zaqar configiration directory ``/etc/zaqar/``:
.. code-block:: console
# mkdir /etc/zaqar/
# cp etc/policy.json.sample /etc/zaqar/policy.json
# mkdir /etc/zaqar
#. Customize the policy file:
.. code-block:: console
# oslopolicy-sample-generator --config-file etc/oslo-config-generator/zaqar-policy-generator.conf
# cp etc/zaqar.policy.yaml.sample /etc/zaqar/policy.yaml
Edit any item as needed in policy.yaml.
.. note::
By default, if you do not need custom policy file, you do not need to
perform the above steps, then zaqar will use the code's default policy.
#. Create log file: