schubergphilis / knife-github

Chef knife plugin to interact with the github enterprise appliance
Other
2 stars 4 forks source link

In final mode freeze the cookbook #11

Open isoutham opened 10 years ago

isoutham commented 10 years ago

Also a possibility to unfreeze a cookbook for dev work?

sbotman commented 10 years ago

This would indeed be a nice option, but somehow I don't agree with the option "unfreeze". And next too that, it's not even possible as far as I know (or we can work around the default) because chef doesn't allow this. There is the option to over-write the frozen cookbook with the option --force, but I think we are in-sync in the way we think about force options.. Nevertheless, when executing something like this you should really be sure that you know what you are doing, so maybe just increasing the version number would be the best solution...

isoutham commented 10 years ago

The question is once you have finalized a cookbook, how do you go back to a situation where you can develop it.

At the moment the plugin says if frozen then you must use final mode

That starts to look like a mistake.

ghost commented 10 years ago

The only way to "unfreeze" it that I can find is to delete the cookbook, then reload it. This is undesirable in a production environment. Ideally, a production release of a cookbook should be "frozen", and development occur on new releases. But then you have to prevent new releases from being picked up automatically.

It's a problem.