diff --git a/userdocs/contents/overlays.rst b/userdocs/contents/overlays.rst index 84f6acd0..cd1fe5be 100644 --- a/userdocs/contents/overlays.rst +++ b/userdocs/contents/overlays.rst @@ -143,7 +143,7 @@ permissions, etc. .. note:: - There is now possibility to delete files with an overlay! [example needed] + There is no possibility to delete files with an overlay! Build ----- diff --git a/userdocs/contents/templating.rst b/userdocs/contents/templating.rst index 692adcbc..98114144 100644 --- a/userdocs/contents/templating.rst +++ b/userdocs/contents/templating.rst @@ -211,3 +211,17 @@ A given string can be split into substrings. {{ $x := "a:b:c" -}} {{ $y := (split $x ":") -}} {{ range $y }} {{.}} {{ end }} + + +Node specific files +------------------- + +Sometimes there is the need to have specific files for every node +which can't be generated by a template. You can include these files +with following template: + +.. code-block:: go + + {{- $filename := print "/root/" .Id "-payload" }} + {{ Include $filename }} +