Merge pull request #891 from mslacken/NodeSpecificFiles
added example for host specific files
This commit is contained in:
@@ -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
|
||||
-----
|
||||
|
||||
@@ -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 }}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user