summaryrefslogtreecommitdiff
path: root/etc/trove/README-policy.generated.md
blob: 1c8f0cfdd577c27ab9ff404fcbb2db9c004b9a66 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Generate Trove policies sample
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Trove policies sample are no longer provided, instead it could be generated
by running the following command from the top of the trove directory:

    tox -egenpolicy


Use customized policy file
~~~~~~~~~~~~~~~~~~~~~~~~~~

As Trove uses policy in code now, it's not necessary to add a policy file for
Trove components to run. But when a customized policy is needed, Trove will
take ``/etc/trove/policy.json`` by default. The location of the policy file
can also be overridden by adding following lines in Trove config file:

    [oslo_policy]
    policy_file = /path/to/policy/file