1 Star 0 Fork 0

aaawoyucheng / cloud-init-guide

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
21-heat-with-cloud-init.txt 1.00 KB
一键复制 编辑 原始数据 按行查看 历史
Matt Dorn 提交于 2016-04-27 03:43 . initial commit
heat_template_version: 2013-05-23
description: Test Template Showing Compatibility with Cloud-Init
parameters:
ImageID:
type: string
description: Image used to boot a server
Flavor:
type: string
description: Flavor of server
NetID:
type: string
description: Network ID for the server
Key:
type: string
description: Keypair to inject into the server
resources:
personal_config:
type: OS::Heat::CloudConfig
properties:
cloud_config:
package_update: true
package_upgrade: true
server1:
type: OS::Nova::Server
properties:
name: "Test server"
image: { get_param: ImageID }
flavor: { get_param: Flavor }
key_name: { get_param: Key }
networks:
- network: { get_param: NetID }
user_data: { get_resource: personal_config }
user_data_format: RAW
# To Create the Stack:
# heat stack-create -f mystack.yml -P NetID=<net_id> -P ImageID=<image-id> -P Flavor=<flavor> -P Key=MyKey Cloud-Init-Stack-Test
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/aaawoyucheng/cloud-init-guide.git
git@gitee.com:aaawoyucheng/cloud-init-guide.git
aaawoyucheng
cloud-init-guide
cloud-init-guide
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891