Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

structure not extendible #4

Open
glensc opened this issue Apr 23, 2016 · 0 comments
Open

structure not extendible #4

glensc opened this issue Apr 23, 2016 · 0 comments

Comments

@glensc
Copy link

glensc commented Apr 23, 2016

i don't think the structure you use is extendible, i.e add attributes from environment, add more attributes from role, override in node

"pkgs"  : [
    { "name"    : "tree",
      "action"  : "upgrade"
    },
    { "name"    : "stow" }
  ]

i propose the has structure, package name being the key:

"pkgs"  : {
    "file" : {},
    "meh" : {
      "version": "1.2alpha1"
    },
    "tree" : {
      "action"  : "upgrade"
    },
    "cuckoo" : {
      "action": "remove"
    },
    "stow" : false
  }

using false (or maybe also nil, null) is way of telling, hey override merged results telling hey don't do anything with that one

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant