From f585eb30831f84f15e149cde403ec56ebd75d0e3 Mon Sep 17 00:00:00 2001 From: tengqm Date: Fri, 13 Jun 2014 14:39:51 +0800 Subject: [PATCH] Instructions on image creation for SoftwareConfig. Instructions on creating images that can be used for SoftwareConfig and SoftwareDeployment are added. Change-Id: If4bc6197ca38d73378ada6a6b32e47a658d88fc5 --- doc/source/getting_started/jeos_building.rst | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/doc/source/getting_started/jeos_building.rst b/doc/source/getting_started/jeos_building.rst index 1de3cc0e56..1d04183e5e 100644 --- a/doc/source/getting_started/jeos_building.rst +++ b/doc/source/getting_started/jeos_building.rst @@ -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 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 ~~~~~~~~~~~~~~~~~~~~~~~~~ Another approach to building a heat-cfntools enabled image is to use Oz wrapped in a convenience script.