vFW and vDNS support added to azure-plugin
[multicloud/azure.git] / azure / aria / aria-extension-cloudify / src / aria / examples / tosca-simple-1.0 / use-cases / block-storage-3 / block-storage-3.yaml
1 tosca_definitions_version: tosca_simple_yaml_1_0
2
3 description: >-
4   TOSCA simple profile with server and attached block storage using a named Relationship Template
5   for the storage attachment.
6
7 metadata:
8   template_name: block-storage-3
9   template_author: TOSCA Simple Profile in YAML
10   template_version: '1.0'
11
12 topology_template:
13
14   inputs:
15     cpus:
16       type: integer
17       description: Number of CPUs for the server.
18       constraints:
19         - valid_values: [ 1, 2, 4, 8 ]
20     storage_size:
21       type: scalar-unit.size
22       description: Size of the storage to be created.
23       default: 1 GB
24     storage_location:
25       type: string
26       description: Block storage mount point (filesystem path).
27
28   node_templates:
29
30     my_server:
31       type: Compute
32       capabilities:
33         host:
34           properties:
35             disk_size: 10 GB
36             num_cpus: { get_input: cpus }
37             mem_size: 4 GB
38         os:
39           properties:
40             architecture: x86_64
41             type: Linux
42             distribution: Fedora
43             version: 18.0
44       requirements:
45         - local_storage:
46             node: my_storage
47             # Declare template to use with 'relationship' keyword
48             relationship: storage_attachment
49
50     my_storage:
51       type: BlockStorage
52       properties:
53         size: { get_input: storage_size }
54
55   relationship_templates:
56
57     storage_attachment:
58       type: AttachesTo
59       properties:
60         location: { get_input: storage_location }
61
62   outputs:
63     private_ip:
64       description: The private IP address of the newly created compute instance.
65       value: { get_attribute: [ my_server, private_address ] }
66     volume_id:
67       description: The volume id of the block storage instance.
68       value: { get_property: [ my_storage, volume_id ] } # ARIA NOTE: wrong in spec