Skip to content

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

License

Notifications You must be signed in to change notification settings

Tensibai/chef-server-migration

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages