2014-05-30 15:28:20 +00:00
|
|
|
=====================
|
|
|
|
salt.renderers.yamlex
|
|
|
|
=====================
|
2014-04-07 16:13:23 +00:00
|
|
|
|
2014-07-13 18:43:33 +00:00
|
|
|
YAMLEX renderer is a replacement of the YAML renderer.
|
2014-04-07 16:13:23 +00:00
|
|
|
It's 100% YAML with a pinch of Salt magic:
|
|
|
|
|
|
|
|
* All mappings are automatically OrderedDict
|
|
|
|
* All strings are automatically str obj
|
|
|
|
* data aggregation with !aggregation yaml tag, based on the ``salt.utils.aggregation`` module.
|
|
|
|
* data aggregation over documents for pillar
|
|
|
|
|
|
|
|
Instructed aggregation within the ``!aggregation`` and the ``!reset`` tags:
|
|
|
|
|
|
|
|
.. code-block:: yaml
|
|
|
|
|
2014-05-30 15:28:20 +00:00
|
|
|
#!yamlex
|
2014-04-07 16:13:23 +00:00
|
|
|
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
|
|
|
|
|
|
|
|
.. code-block:: yaml
|
|
|
|
|
|
|
|
foo: [first, second]
|
|
|
|
bar: {first: foo, second: bar}
|
|
|
|
baz: [42]
|
|
|
|
qux: [my custom data]
|
|
|
|
|
|
|
|
|
|
|
|
Reference
|
|
|
|
---------
|
|
|
|
|
2014-05-30 15:28:20 +00:00
|
|
|
.. automodule:: salt.renderers.yamlex
|
2014-12-11 03:36:32 +00:00
|
|
|
:members:
|