Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 680 Bytes

readyaml.markdown

File metadata and controls

26 lines (18 loc) · 680 Bytes
layout title published tags
default
readyaml
true
reference
io functions
functions
readyaml
yaml
json
container

[%CFEngine_function_prototype(filename, optional_maxbytes)%]

Description: Parses YAML data from the file filename and returns the result as a data variable. maxbytes is optional, if specified, only the first maxbytes bytes are read from filename.

[%CFEngine_function_attributes(filename, optional_maxbytes)%]

Example:

    vars:

      "loadthis"

         data =>  readyaml("/tmp/data.yaml", 4000);

See also: readdata(), parsejson(), parseyaml(), storejson(), mergedata(), and data documentation.