mattray / spiceweasel

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

Bug or Feature: Use of --cluster-file does not pick up environment (or anything else) from main config file #51

Closed rberger closed 11 years ago

rberger commented 11 years ago

It seems that if I have all my roles, databags environments etc as well as some cluster definition in my main config file config.yml and I have just an alternate cluster definition in another file, alt-cluster.yml, and I run it like:

spiceweasel   config.yml --cluster-file alt-cluster.yml

nothing in the main config.yml seems to get applied.

I don't see any of the the knife commands to upload the roles, databags, environments, etc.

But most importantly it doesn't pick up the environment so I get the error:

ERROR: Environment 'qa' is listed in the cluster, but not specified as an 'environment' in the manifest.

Is this a bug or a "feature"?

mattray commented 11 years ago

It's a known bug. Right now the config.yml has to be last argument to get processed, that's why it's not being found here.

mattray commented 11 years ago

Fixed. Releasing in 2.6 shortly.