If your image uses Chef recipes, after you upgrade to IBM® UrbanCode™ Deploy version
6.2 or later, you must manually update the Chef hook on the images in your cloud.
Procedure
- Extract the os-chef-config-hook.tgz file. This file is provided in the heat engine installation media and is in the following location:
/installation_files_location/ibm-ucd-patterns-install/engine-install/resources.
- Create a copy of the hook-chef.py file, which is in the following directory:
extracted_files/os-chef-config-hook/heat-templates/hot/software-config/elements/heat-config-chef/install.d.
- Rename the hook-chef.py file that you copied as chef.
- On an image that you configured for Chef, in the
/var/lib/heat-config/hooks folder, replace the chef file with
the copy that you renamed.
- Change the permission of the new chef file to
0777.
- Shut down the image with the following command:
shutdown -h now
- Create an image and upload it to your cloud. For more information, see Creating Chef-compatible images.