From f77ca1164e742d846f358fd8627c72c346f207a8 Mon Sep 17 00:00:00 2001 From: Konrad Bucheli Date: Wed, 12 Apr 2023 11:40:10 +0200 Subject: [PATCH] document definition of directories --- admin-guide/puppet/profiles/files.rst | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/admin-guide/puppet/profiles/files.rst b/admin-guide/puppet/profiles/files.rst index 5ac59359..87759db0 100644 --- a/admin-guide/puppet/profiles/files.rst +++ b/admin-guide/puppet/profiles/files.rst @@ -11,6 +11,7 @@ Parameters **Name** **Type** **Default** ------------------------------- -------- ------------------------------------------------ symlinks hash hiera('files::symlinks') +directories hash hiera_hash('files::directories') =============================== ======== ================================================ @@ -25,3 +26,20 @@ Example:: files::symlinks: '/opt/foo': '/var/lib/foo' + + + +``directories`` +~~~~~~~~~~~~~~~ + +A hash specifying directories to be created. The keys of the hash are the absolute +pathnames of the directory, the optional values can be ``owner``, ``group`` (default is ``root`` for both) and the ``mode`` (default ``755``). Parent directories are automatically created with default settings. If that is not desired, do a custom definition for each parent directory too. + +Example:: + + files::directories: + /etc/test1: + /etc/test2/foo/bar: + owner: 'buchel_k' + group: 'unx-nogroup' + mode: '775'