-
Notifications
You must be signed in to change notification settings - Fork 15
/
21-heat-with-cloud-init.txt
42 lines (35 loc) · 1 KB
/
21-heat-with-cloud-init.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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