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-1 / block-storage-1.yaml
1 tosca_definitions_version: tosca_simple_yaml_1_0
2
3 description: >-
4   TOSCA simple profile with server and attached block storage using the normative AttachesTo
5   Relationship Type.
6
7 metadata:
8   template_name: block-storage-1
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_snapshot_id:
25       type: string
26       description: >-
27         Optional identifier for an existing snapshot to use when creating storage.
28     storage_location:
29       type: string
30       description: Block storage mount point (filesystem path).
31
32   node_templates:
33
34     my_server:
35       type: Compute
36       capabilities:
37         host:
38           properties:
39             disk_size: 10 GB
40             num_cpus: { get_input: cpus }
41             mem_size: 1 GB
42         os:
43           properties:
44             architecture: x86_64
45             type: linux
46             distribution: fedora
47             version: 18.0
48       requirements:
49         - local_storage:
50             node: my_storage
51             relationship:
52               type: AttachesTo
53               properties:
54                 location: { get_input: storage_location }
55
56     my_storage:
57       type: BlockStorage
58       properties:
59         size: { get_input: storage_size }
60         snapshot_id: { get_input: storage_snapshot_id }
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