-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added rendering of custom mustache templates to $(sys.workdir)/modules
With this change mustache templates found in modules/mustache (relative to the root of the policy set) are rendered to $(sys.workdir)/modules using datastate() from the update.cf policy entry. Ticket: ENT-10793 Changelog: Title
- Loading branch information
1 parent
3b697b2
commit 95afe34
Showing
2 changed files
with
23 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
Files in this directory ending in `.mustache` are rendered to | ||
`$(sys.workdir)/modules` (typically `/var/cfengine/modules`) using `datastate()` | ||
from the `update.cf` policy entry. Templates in sub-directories are not | ||
considered. | ||
|
||
For example `hello.sh.mustache` will be rendered to | ||
`$(sys.workdir)/modules/hello.sh` and `sub-dir/goodbye.sh.mustache` would not be | ||
rendered to `$(sys.workdir)/modules/sub-dir/goodby.sh`. | ||
|
||
## History | ||
- Added in 3.23.0 |