function

mapdata

A built-in CFEngine function in the data category that returns a data container. mapdata is not called from the policy on your hosts.

Signature
mapdata(option, string, string)
Parameters
  1. option Conversion to apply to the mapped string (none,canonify,json,json_pipe)
  2. string Pattern based on $(this.k) and $(this.v) as original text (.*)
  3. string CFEngine variable identifier or inline JSON (.*)
Returns
data
Category
data