Red Hat Training

A Red Hat training course is available for Red Hat OpenStack Platform

6.18. Using Customized Core Heat Templates

When creating the Overcloud, the director uses a core set of heat templates. You can copy the standard heat templates into a local directory and use these templates for creating your Overcloud.
Copy the heat template collection in /usr/share/openstack-tripleo-heat-templates to the stack user's templates directory:
$ cp -r /usr/share/openstack-tripleo-heat-templates ~/templates/my-overcloud
This creates a clone of the Overcloud Heat templates. When running openstack overcloud deploy, we use the --templates option to specify your local template directory. This occurs later in this scenario (see Chapter 7, Creating the Overcloud).


The director uses the default template directory (/usr/share/openstack-tripleo-heat-templates) if you specify the --templates option without a directory.


Red Hat provides updates to the heat template collection over subsequent releases. Using a modified template collection can lead to a divergence between your custom copy and the original copy in /usr/share/openstack-tripleo-heat-templates. Red Hat recommends using the methods from the following section instead of modifying the heat template collection:
If creating a copy of the heat template collection, you should track changes to the templates using a version control system such as git.