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

Move all list types to hashes/dicts #106

Open
nephomaniac opened this issue May 4, 2016 · 0 comments
Open

Move all list types to hashes/dicts #106

nephomaniac opened this issue May 4, 2016 · 0 comments

Comments

@nephomaniac
Copy link

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
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant