add type to template declaration to differentiate between multi, single and add simple text file manifestation
For now, rconfd consider all templates as a multi manifest templates where each keys are file path to be generated.
To support single manifestation, add a type
key which can be single
or multi
(by default).
When template name extension is tmpl
, we consider the template as text template with jsonnet string formating expressions (python like) that are evaluated against the keys of secrets extVar.
{
"Cargo.toml.tmpl": {
"mode": 644,
"user": "test",
"secrets": {
}
}
}
}
This is just a convenience to remove boilerplate when you just want to generate a file with string substitutions, and is equivalent to generate in single mode a template like this one
local secrets = std.extVar("secrets"):
|||
Cargo.toml content
||| % secrets
Edited by Éric BURGHARD