Skip to content

Break down by OS->Hostname->Distro #12

@flowchartsman

Description

@flowchartsman

It would be nice to have optional mappings/init/etc broken down by OS, then Hostname, then distro/version like the following JSON

{
  "mappings": {
    "one": "two",
    "two": "three"
  },
  "init" : [
    "one",
    "two"
  ],
  "env" : {
    "linux" :{
      "mappings": {
        "three": "four"
      },
      "init" : [
        "three"
      ]
    }
  }
}

But, alas, TOML doesn't support arrays and tables at the same level unless they're written in a particular order.

#totally fine
bar = [
  "one",
  "two"
]

[foo]
one = "two"
three = "four"
#nope
[foo]
one = "two"
three = "four"

bar = [
  "one",
  "two"
]

YAML's cool with it, though:

foo:
  one: two
  three: four
bar:
  - one
  - two

Kind of a big change, but it would dovetail nicely with init command substitutions. Opening issue to track.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions