Skip to content
This repository was archived by the owner on Aug 30, 2024. It is now read-only.

Move all list types to hashes/dicts #106

@nephomaniac

Description

@nephomaniac

It seems that list merging and iteration is cleaner when using hashes/dictionaries vs lists (mainly for Ruby/Chef).
Suggest that Calyptos yaml avoids lists wherever possible and replace these with basic key-value dict mappings. I believe this is safer, and allows for flexibility in the future. For example:
This list...

hosts:
-1.1.1.1
-1.1.1.2
-1.1.1.3

Would be something like this...

hosts:
  1.1.1.1: true
  1.1.1.2: true
  1.1.1.3: true

Or...

hosts:
  1.1.1.1:
    bridge: br0
    bridge_interface: eth1
  1.1.1.2:
    bridge: br0
    bridge_interface: em1
  1.1.1.3:
    bridge: br0
    bridge_interface: bond1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions