diff options
| author | Michal Nasiadka <mnasiadka@gmail.com> | 2026-04-27 15:28:17 +0200 |
|---|---|---|
| committer | Michal Nasiadka <mnasiadka@gmail.com> | 2026-05-05 10:34:26 +0000 |
| commit | 33c0e26e8a0290f0b6d647bb67e18a4f500907fc (patch) | |
| tree | d87fa00b1bb4c60e664111bd895bf629c903e060 /doc | |
| parent | 1627e5da6d6ac754be3e0afe61eeddf6e38f93b6 (diff) | |
| download | kolla-33c0e26e8a0290f0b6d647bb67e18a4f500907fc.tar.gz kolla-33c0e26e8a0290f0b6d647bb67e18a4f500907fc.zip | |
set_configs: Add support for creating directories and setting perms
Change-Id: Id63c035fafaa68a9004c65161c5a3a3ad5544f02
Signed-off-by: Michal Nasiadka <mnasiadka@gmail.com>
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/source/admin/kolla_api.rst | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/doc/source/admin/kolla_api.rst b/doc/source/admin/kolla_api.rst index 2d0a17a0f..b1fd6b140 100644 --- a/doc/source/admin/kolla_api.rst +++ b/doc/source/admin/kolla_api.rst @@ -54,6 +54,16 @@ The `kolla_set_configs`_ script understands the following attributes: * **merge**: merges the source directory into the target directory instead of replacing it. Boolean, defaults to ``false``. +* **directories**: create directories inside the container if they do not + exist, and set their ownership and permissions. A list of dicts, each + containing the following attributes: + + * **path** (required): the path to the directory to create. + * **owner** (required): the ``user:group`` to change ownership to. ``user`` + is synonymous to ``user:user``. Must be user and group names, not uid/gid. + * **perm** (required): the unix permissions to set to the directory. + Must be passed in the numeric octal form. + * **permissions**: change the permissions and/or ownership of files or directories inside the container. A list of dicts, each containing the following attributes: @@ -84,6 +94,13 @@ Here is an example configuration file: "optional": false } ], + "directories": [ + { + "path": "/var/lib/trove", + "owner": "trove", + "perm": "0755" + } + ], "permissions": [ { "path": "/var/log/kolla/trove", |
