forked from tliron/puccini
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhello-world.yaml
49 lines (37 loc) · 1.16 KB
/
hello-world.yaml
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
43
44
45
46
47
48
49
tosca_definitions_version: tosca_simple_yaml_1_3
# Straightforward TOSCA version of the Heat hello world:
# https://docs.openstack.org/heat/pike/template_guide/hello_world.html
metadata:
template_name: OpenStack Profile Example
template_author: Puccini
imports:
- namespace_prefix: openstack
file: profile/profile.yaml
topology_template:
inputs:
key_name:
type: string
default: my_key
description: Name of key-pair to be used for compute instance
image_id:
type: string
default: CentOS-7-x86_643
description: Image to be used for compute instance
flavor:
type: string
default: m1.small
description: Type of instance (flavor) to be used
constraints:
- valid_values: [ m1.small, m1.medium, m1.large, m1.xlarge ]
node_templates:
my_instance:
type: openstack:nova.Server
properties:
key_name: { get_input: key_name }
image: { get_input: image_id }
flavor: { get_input: flavor }
outputs:
instance_ip:
description: The IP address of the deployed instance
type: string
value: { get_attribute: [ my_instance, accessIPv4 ] }