讀古今文學網 > 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格式的版本有所區別。