mattray / spiceweasel

Generates Chef knife commands from a simple JSON or YAML file.
Apache License 2.0
283 stars 66 forks source link

create node definition without bootstrap ? #46

Closed paulczar closed 11 years ago

paulczar commented 11 years ago

I use vagrant a lot, and it would be really useful to be able to create a node without bootstrapping it. I can't see a way to do that currently.

mattray commented 11 years ago

I'm not a Vagrant user, but if you can help flesh out how this would work I'll see what I can do.

gtmtech commented 11 years ago

I used to use chef with vagrant, and built my own base VM with Veewee which included the base OS + chef. Then I could vagrant up a node using chef_solo to provision with no bootstrapping required.

mattray commented 11 years ago

After discussing this at the Austin Chef Cafe, I've got a better feel for what you want now. We want to load node objects onto the Chef server without bootstrapping via "knife node from file". This is definitely doable, I'll mark it for the 2.6 release, probably with a new flag like --node-only to knife bootstrap from file FOO and then knife node run list add FOO "recipe[blah],role[blahblah] if there's a run list with the node defined. Does that sound good?

paulczar commented 11 years ago

Perfect! <3

mrsqueeze commented 11 years ago

+1 on this feature. It would be a big help for deploying cluster services that need multiple rounds to complete.

claco commented 11 years ago

Along the lines of @grumpyhacker , a multiple run scenario would be quite easy if I could have spiceweasel output the contents of the manifest in the exact order I declared them. If does order things in the nodes, knife sections, but it runs those sections in a specific order, which sometimes is not what I intended. if I have to revert to putting everything in knife:, I might as well just drop in a shell script which I hate. :-)

mattray commented 11 years ago

I got about halfway through the feature and got sidetracked on some other stuff. I expect I'll have it done before the end of next week.

mattray commented 11 years ago

Working and merged to master, still looking at another issue or 2, hope to push out 2.6 soon.