From 07d0b12efdbaaf38d41670d67a2ba47ac9ded1e4 Mon Sep 17 00:00:00 2001 From: MinSun Date: Thu, 25 Apr 2019 14:54:42 +0800 Subject: Add exclude for permissions in kolla config.json file When using recursive mode to set permissions for a directory as defined in kolla config.json, all the subdirectories and files will receive the same permissions. This change adds the option to exclude specific files or directories - either a name or a regular expression can be used. Closes-Bug: #1931294 Closes-Bug: #1972168 Co-Authored-By: Jakub Darmach Change-Id: If2f39736e2af34cd91d0976051ff66f06e96ab42 --- doc/source/admin/kolla_api.rst | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'doc') diff --git a/doc/source/admin/kolla_api.rst b/doc/source/admin/kolla_api.rst index b366de696..93cb97c20 100644 --- a/doc/source/admin/kolla_api.rst +++ b/doc/source/admin/kolla_api.rst @@ -65,6 +65,9 @@ The `kolla_set_configs`_ script understands the following attributes: Must be passed in the numeric octal form. * **recurse**: whether to apply the change recursively over the target directory. Boolean, defaults to ``false``. + * **exclude**: array of names of the directories or files to be excluded when + ``recurse`` is set to ``true``. Supports Python regular expressions. + Defaults to empty array. Here is an example configuration file: @@ -85,7 +88,8 @@ Here is an example configuration file: { "path": "/var/log/kolla/trove", "owner": "trove:trove", - "recurse": true + "recurse": true, + "exclude": ["/var/log/^snapshot.*"] } ] } -- cgit v1.2.3