Skip to content

Latest commit

 

History

History
28 lines (14 loc) · 1.15 KB

README.md

File metadata and controls

28 lines (14 loc) · 1.15 KB

chef-server-migration

Code Climate

Repository to store scripts needed to clean up cookbooks while migrating from Chef server opens source 11 to Chef 12

Usage

Those scripts are what I did use when my upgrade by chef-server-ctl upgrade failed

1 )I did cd to the /tmp/chef12-/organizations//cookbooks directory made y the transformation

  1. pass all the commands in the .txt file (copy/paste should do)

  2. And next copy the .rb to /tmp and run /tmp/depends-validations.rb -d ./ assuming you're still in the cookbooks directory, this will list the cookbooks and versions where the version constraint can't be satisfied with the current state, fix all of them (or delete them if a newer version is available)

  3. run chef-server-ctl chef12-upgrade-upload -e /tmp/chef12-<...> to upload your datas.

Todo:

  • Incude the commands in the script
  • Add a dry run mode
  • Improve the output
  • Add an option to remove cookbooks version not needed anymore according to environments and roles.