If your image uses Chef recipes, after you upgrade to IBM® UrbanCode® Deploy version
6.2.1 or later, you must manually update the Chef hook on the images in your cloud.
-
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
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:
-
Create an image and upload it to your cloud.