From eb46c7d2e9c89c08285bfebacec8c2174f3d5462 Mon Sep 17 00:00:00 2001 From: ebner Date: Thu, 6 Jun 2024 16:13:36 +0200 Subject: [PATCH] update documentation with new feature --- admin-guide/configuration/distribute_files.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/admin-guide/configuration/distribute_files.md b/admin-guide/configuration/distribute_files.md index 2cf0bf2c..7c6e5170 100644 --- a/admin-guide/configuration/distribute_files.md +++ b/admin-guide/configuration/distribute_files.md @@ -86,11 +86,16 @@ Example: ``` files::git: /var/test/container-images: + ensure: latest url: 'https://git.psi.ch/linux-infra/container_images.git' revision: 'main' ``` -If the `revision` is missing, it will initialize the checkout with the default branch, but after leave the checkout as is and not try to ensure that it is on given revision (branch, tag or commit). +If the `ensure` is missing, it will initialize the checkout with the default branch, but afterwards leave the checkout as is and not try to ensure that it is on a given revision (branch, tag or commit). + +Possible values for `ensure` are: present, bare, mirror, absent, latest . + +More details on the possible values of ensure you can find in [this documentation](https://forge.puppet.com/modules/puppetlabs/vcsrepo/reference#ensure) Note that submodules are automatically initialized.