mdxp / knife-backup

knife plugin to help backup and restore a chef server.
Apache License 2.0
110 stars 45 forks source link

How to ignore dependencies when restoring? #39

Closed dotmartti closed 9 years ago

dotmartti commented 9 years ago

Because currently when there is a "depends" defined in the metadata.rb and it's not uploaded before, the result is an error:

Restoring cookbook ["mycookbook"] Uploading mycookbook [1.4.0] ERROR: Cookbook mycookbook depends on cookbooks which are not currently ERROR: being uploaded and cannot be found on the server. ERROR: The missing cookbook(s) are: 'somedependencycookbook' version '>= 1.0.0'

This is annoying because there is no order in which the cookbooks are restored. So there's no telling if the dependency will be restored before or after you actually need it.

pmoosh commented 9 years ago

@dotmartti: Can you let me know which chef server and knife you are using?

pmoosh commented 9 years ago

@dotmartti - I am closing this because of no activity. Feel free to reopen, if you have more information