Skip to content

yaml_sequences

Tanveer Alam edited this page Dec 7, 2019 · 3 revisions

Sequences

Sequences:

  • Lists, arrays, collections
  • Denoted with a dash and a space`(- )
  • Can be combined with mappings
    • "Mapping of sequences"
    • "Sequences of mappings"

  • Mapping of Sequence:

    • Block style:

      roles:
        - webserver
        - wp_database
    • Flow style:

      roles: [ webserver, wp_database ]
  • Sequence of Mappings:

    datacenter:
      - location: Philadelphia
        cab: 13
        cab_unit: 13

  • Cannot be:
    • Blank
    • Nested without mapping

Not allowed:

- playbooks
  - wordpress
  - 
  mysql
  • No : after playbooks
  • Empty sequence

For empty sequence we can use - "".

HELM


YAML Essentials


Helm Deep Dive

Clone this wiki locally