映月读书网 > OpenStack系统架构设计实战 > 6.4.1 模板结构 >

6.4.1 模板结构

HOT模板主要由版本信息、模板描述、参数定义,资源定义和输出定义5部分组成,大致如下:

heat_template_version: 2013-05-23description: # a description of the templateparameters: # declaration of input parametersresources: # declaration of template resourcesoutputs: # declaration of output parameters

其中模板版本信息定义为固定的,HOT版本定义是2013-05-23,与JSON和YAML格式的版本有所区别。