YAMLEX renderer is a replacement of the YAML renderer. It's 100% YAML with a pinch of Salt magic:
salt.utils.aggregation
module.Instructed aggregation within the !aggregation
and the !reset
tags:
#!yamlex foo: !aggregate first foo: !aggregate second bar: !aggregate {first: foo} bar: !aggregate {second: bar} baz: !aggregate 42 qux: !aggregate default !reset qux: !aggregate my custom data
is roughly equivalent to
foo: [first, second] bar: {first: foo, second: bar} baz: [42] qux: [my custom data]
Accepts YAML_EX as a string or as a file object and runs it through the YAML_EX parser.
Return type: | A Python data structure |
---|
© 2019 SaltStack.
Licensed under the Apache License, Version 2.0.
https://docs.saltstack.com/en/latest/ref/renderers/all/salt.renderers.yamlex.html