From a2bc259853daf6d4b328eda028e3d446ec4d9a8a Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Fri, 8 Jan 2021 08:36:33 +0900 Subject: [PATCH] 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 --- manifests/policy/base.pp | 2 ++ ...ate-policy-format-from-json-to-yaml-3389e1d5348cd69b.yaml | 5 +++++ 2 files changed, 7 insertions(+) create mode 100644 releasenotes/notes/migrate-policy-format-from-json-to-yaml-3389e1d5348cd69b.yaml diff --git a/manifests/policy/base.pp b/manifests/policy/base.pp index e54ce02f..90d6ddb1 100644 --- a/manifests/policy/base.pp +++ b/manifests/policy/base.pp @@ -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, diff --git a/releasenotes/notes/migrate-policy-format-from-json-to-yaml-3389e1d5348cd69b.yaml b/releasenotes/notes/migrate-policy-format-from-json-to-yaml-3389e1d5348cd69b.yaml new file mode 100644 index 00000000..7076d448 --- /dev/null +++ b/releasenotes/notes/migrate-policy-format-from-json-to-yaml-3389e1d5348cd69b.yaml @@ -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.