Skip to content

Commit

Permalink
fixup! fixup! fixup! fixup! Fixes #18384: Create a file from remote t…
Browse files Browse the repository at this point in the history
…emplate generic method

Fixes #18384: Create a file from remote template generic method
  • Loading branch information
ncharles committed Nov 18, 2020
1 parent 61846c0 commit 355cd71
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tree/30_generic_methods/file_from_template_type.cf
Expand Up @@ -33,7 +33,7 @@
# it first (using [file_copy_from_remote_source](#_file_copy_from_remote_source)).
#
# It is common to use a specific folder to store those templates after copy,
# for example in `${sys.workdir}/templates/`.
# for example in `${sys.workdir}/tmp/templates/`.
#
# The data that will be used while expanding the template is the data available in
# the agent at the time of expansion. That means:
Expand Down Expand Up @@ -80,13 +80,13 @@
#
# ```
# # Copy the file from the policy server
# file_copy_from_remote_source("/PATH_TO_MY_FILE/ntp.conf.mustache", "${sys.workdir}/templates/ntp.conf.mustache")
# file_copy_from_remote_source("/PATH_TO_MY_FILE/ntp.conf.mustache", "${sys.workdir}/tmp/templates/ntp.conf.mustache")
# # Define the `ntp` varibale in the `configuration` prefix from the json file
# variable_dict_from_file("configuration", "ntp", "/tmp/ntp.json")
# # Expand yout template
# file_from_template_type("${sys.workdir}/templates/ntp.conf.mustache", "/etc/ntp.conf", "mustache")
# file_from_template_type("${sys.workdir}/tmp/templates/ntp.conf.mustache", "/etc/ntp.conf", "mustache")
# # or
# # file_from_template_mustache("${sys.workdir}/templates/ntp.conf.mustache", "/etc/ntp.conf")
# # file_from_template_mustache("${sys.workdir}/tmp/templates/ntp.conf.mustache", "/etc/ntp.conf")
# ```
#
# The destination file will contain the expanded content, for example on a Linux node:
Expand Down

0 comments on commit 355cd71

Please sign in to comment.