找回密码
 注册
查看: 4446|回复: 1

Heat 模板测试

[复制链接]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
发表于 2017-11-10 21:15:12 | 显示全部楼层 |阅读模式
购买主题 本主题需向作者支付 6 金钱 才能浏览

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2017-11-20 15:55:50 | 显示全部楼层
使用下面的内容创建``demo-template.yml``文件:: `$ t. A" b! f6 ~
3 v) B% V, z3 w
heat_template_version: 2015-10-154 S: E6 i8 ]" f! ]5 ]$ h+ J
description: Launch a basic instance using the ``m1.tiny`` flavor and one network.8 I2 J0 B, D% A  N  d0 f: t' T7 r
, J& f5 G2 Y# p5 L) h$ H3 Q
parameters:
7 t9 `% _3 s  r+ j  ImageID:/ B: W0 h# A8 c, c# R4 J2 a5 {2 A
    type: string- Q. |0 ~) w1 w! m5 V
    description: Image to use for the instance.
/ `8 c/ H# e& n( i7 n9 K/ z& D( p  NetID:/ a4 p9 a, V  n
    type: string
2 n6 K  O. R# @. u# v! x* c! {    description: Network ID to use for the instance.! H. C& q! d4 m6 F

# u0 Z3 z( A: E% l0 ?$ A) Qresources:5 Z/ d0 `& P  ?- v3 B: V5 M1 x
  server:
' ~% w3 D* z6 e+ g2 d" X; c    type: OS::Nova::Server
5 k5 r' S: ^  a# X: B8 |    properties:
5 n7 ?  M& [: r, k6 R0 B& D6 s      image: { get_param: ImageID }
7 O; y# c4 q7 b$ [* T; G# K      flavor: m1.tiny
0 m) Q7 {3 L6 G8 c6 r! J7 t      networks:7 G" }$ B. W4 y2 \) U4 z
      - network: { get_param: NetID }! `8 }0 r7 x% q. x% U

: w, W8 L, V" z, Z* m# j4 B# joutputs:( S! y% A6 R# l4 p( L2 n! M" \/ _
  instance_name:% |! D1 _5 n0 `- u4 L
    description: Name of the instance.
* {4 f: }; @3 t) z( `/ x+ S    value: { get_attr: [ server, name ] }
% m. h' n+ b4 I! b  instance_ip:& R6 I! V0 W/ W4 T9 ?/ `3 M9 B0 e+ B
    description: IP address of the instance.  Y3 f5 w1 A* d7 j$ H
    value: { get_attr: [ server, first_address ] }
您需要登录后才可以回帖 登录 | 注册

本版积分规则

返回首页|Archiver|手机版|小黑屋|易陆发现技术论坛 ( 蜀ICP备2026014127号-1 )

GMT+8, 2026-6-11 23:59 , Processed in 0.026952 second(s), 25 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表