mux-selftest-advanced.yaml 1.5 KB
Newer Older
1 2
# Put everything into /virt
!using : virt
3 4
# Following line makes it look exactly as mux-selftest.yaml
!include : mux-selftest.yaml
5
distro: !mux
6
    # This line extends the distro branch using include
7 8 9 10 11
    !include : mux-selftest-distro.yaml
    # remove node called "mint"
    !remove_node : mi.*nt
    # This is a new /distro/mint appended as latest child
    mint:
12
        new_mint: True
13 14 15 16 17 18 19 20 21
    fedora:
        !remove_value : init.*
        new_init: systemd
    gentoo:
        # This modifies the value of 'is_cool'
        is_cool: True
        # And this removes the original 'is_cool'
        # Setting happens after ctrl so it should be created'
        !remove_value : is_cool
22
distro: !mux
23
    gentoo:     # This won't change anything
24 25
# This creates new branch the usual way
new_node:
26 27 28 29
    # Put this new_node into /absolutely/fresh/ ('/' are automatically
    # removed during parse time, absolute location is not supported and
    # not even planned)
    !using : /absolutely/fresh/
30
    new_value: "something"
31 32 33 34 35
# Check that mapping keys are not converted to values, while values are
# while value between quotes stays as string.
on:
    on: on
    true: "true"
36 37 38 39 40 41
# We do also support ordinary dicts as values if they are either marked
# as dicts or when they are stored inside another object.
# note: They will be turned into OrderedDict(s), but the behavior
#       should be similar.
dict:
    explicit: !!python/dict
42
        foo: bar
43 44 45 46
        bar: baz
    in_list:
        - foo: bar
          bar: baz