Instructions on image creation for SoftwareConfig.

Instructions on creating images that can be used for SoftwareConfig and
SoftwareDeployment are added.

Change-Id: If4bc6197ca38d73378ada6a6b32e47a658d88fc5
This commit is contained in:
tengqm 2014-06-13 14:39:51 +08:00
parent ce71253f6c
commit f585eb3083
1 changed files with 18 additions and 0 deletions

View File

@ -60,6 +60,24 @@ This means that the resulting heat templates only need to modify configuration
files. This will speed stack launch time and reduce the risk of a transient files. This will speed stack launch time and reduce the risk of a transient
package download failure causing the stack launch to fail. package download failure causing the stack launch to fail.
To create an image that contains hooks needed for SoftwareConfig and SoftwareDeployment,
you can follow the steps bellow to build a fedora based image::
git clone https://git.openstack.org/openstack/diskimage-builder.git
git clone https://git.openstack.org/openstack/tripleo-image-elements.git
git clone https://git.openstack.org/openstack/heat-templates.git
export ELEMENTS_PATH=tripleo-image-elements/elements:heat-templates/hot/software-config/elements
diskimage-builder/bin/disk-image-create vm \
fedora selinux-permissive \
heat-config \
os-collect-config \
os-refresh-config \
os-apply-config \
heat-config-cfn-init \
heat-config-puppet \
heat-config-script \
-o fedora-software-config.qcow2
Building an image with Oz Building an image with Oz
~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~
Another approach to building a heat-cfntools enabled image is to use Oz wrapped in a convenience script. Another approach to building a heat-cfntools enabled image is to use Oz wrapped in a convenience script.