Merge pull request #891 from mslacken/NodeSpecificFiles

added example for host specific files
This commit is contained in:
Christian Goll
2023-08-15 12:48:10 +02:00
committed by GitHub
2 changed files with 15 additions and 1 deletions

View File

@@ -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
-----

View File

@@ -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 }}