1
0

salt.renderers.yamlex.rst 940 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. =====================
  2. salt.renderers.yamlex
  3. =====================
  4. YAMLEX renderer is a replacement of the YAML renderer.
  5. It's 100% YAML with a pinch of Salt magic:
  6. * All mappings are automatically OrderedDict
  7. * All strings are automatically str obj
  8. * data aggregation with !aggregation yaml tag, based on the ``salt.utils.aggregation`` module.
  9. * data aggregation over documents for pillar
  10. Instructed aggregation within the ``!aggregation`` and the ``!reset`` tags:
  11. .. code-block:: yaml
  12. #!yamlex
  13. foo: !aggregate first
  14. foo: !aggregate second
  15. bar: !aggregate {first: foo}
  16. bar: !aggregate {second: bar}
  17. baz: !aggregate 42
  18. qux: !aggregate default
  19. !reset qux: !aggregate my custom data
  20. is roughly equivalent to
  21. .. code-block:: yaml
  22. foo: [first, second]
  23. bar: {first: foo, second: bar}
  24. baz: [42]
  25. qux: [my custom data]
  26. Reference
  27. ---------
  28. .. automodule:: salt.renderers.yamlex
  29. :members: