You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I implemented this with facter::structured_data_fact in #68
It does not let you pick between yaml and json, but it shouldn't matter since we are totally managing that file. I went with YAML btw.
Would be cool to support JSON and YAML formats so things like hashes and arrays could be written to fact files.
Thoughts on what it might look like:
hash_data = {'a' => 'value', 'b' => 'data'} facter::fact { 'hash_data': value => $hash_data, format => 'yaml', }The text was updated successfully, but these errors were encountered: