File: sample-policy.rst

package info (click to toggle)
placement 14.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,380 kB
  • sloc: python: 17,629; sh: 310; makefile: 61; pascal: 30
file content (24 lines) | stat: -rw-r--r-- 854 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
============================
Sample Placement Policy File
============================

.. warning::

   JSON formatted policy file is deprecated since Placement 5.0.0 (Wallaby).
   The `oslopolicy-convert-json-to-yaml`__ tool will migrate your existing
   JSON-formatted policy file to YAML in a backward-compatible way.

.. __: https://docs.openstack.org/oslo.policy/latest/cli/oslopolicy-convert-json-to-yaml.html

The following is a sample placement policy file for adaptation and use.

The sample policy can also be viewed in :download:`file form
</_static/placement.policy.yaml.sample>`.

.. important::

   The sample policy file is auto-generated from placement when this
   documentation is built. You must ensure your version of placement matches
   the version of this documentation.

.. literalinclude:: /_static/placement.policy.yaml.sample