diff options
| author | MinSun <minsu@cisco.com> | 2019-04-25 14:54:42 +0800 |
|---|---|---|
| committer | Jakub Darmach <jakub@stackhpc.com> | 2024-08-21 14:43:12 +0200 |
| commit | 07d0b12efdbaaf38d41670d67a2ba47ac9ded1e4 (patch) | |
| tree | 77caa34f192c0f4a75950be0e727225678cd5886 /doc/source | |
| parent | 5dede104bcdfa72a8da32c46fe0bd27f54221d4f (diff) | |
| download | kolla-07d0b12efdbaaf38d41670d67a2ba47ac9ded1e4.tar.gz kolla-07d0b12efdbaaf38d41670d67a2ba47ac9ded1e4.zip | |
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 <jakub@stackhpc.com>
Change-Id: If2f39736e2af34cd91d0976051ff66f06e96ab42
Diffstat (limited to 'doc/source')
| -rw-r--r-- | doc/source/admin/kolla_api.rst | 6 |
1 files changed, 5 insertions, 1 deletions
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.*"] } ] } |
