Deprecate support for policy.json

Because usage of json for policy file will be deprecated and replaced
by yaml[1].

[1] https://governance.openstack.org/tc/goals/selected/wallaby/migrate-policy-format-from-json-to-yaml.html

Change-Id: I6deff3f1153222f807f4bb9eabedcccabf544f74
This commit is contained in:
Takashi Kajinami 2021-01-08 08:36:33 +09:00
parent 0ffc8e1c4b
commit a2bc259853
2 changed files with 7 additions and 0 deletions

View File

@ -45,6 +45,8 @@ define openstacklib::policy::base (
case $file_format {
'json': {
warning('Json format is deprecated and will be removed in a future release')
ensure_resource('file', $file_path, {
mode => $file_mode,
owner => $file_user,

View File

@ -0,0 +1,5 @@
---
deprecations:
- |
Json format of policy files has been deprecated and will be removed in
a future release. Use yaml format instead.