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-6 / block-storage-6.yaml
1 tosca_definitions_version: tosca_simple_yaml_1_0
2
3 description: >-
4   TOSCA simple profile with 2 servers each with different attached block storage.
5
6 metadata:
7   template_name: block-storage-6
8   template_author: TOSCA Simple Profile in YAML
9   template_version: '1.0'
10
11 topology_template:
12
13   inputs:
14     cpus:
15       type: integer
16       description: Number of CPUs for the server.
17       constraints:
18         - valid_values: [ 1, 2, 4, 8 ]
19     storage_size:
20       type: scalar-unit.size
21       default: 1 GB
22       description: Size of the storage to be created.
23     storage_snapshot_id:
24       type: string
25       description: >-
26         Optional identifier for an existing snapshot to use when creating storage.
27     storage_location:
28       type: string
29       description: >-
30         Block storage mount point (filesystem path).
31
32   node_templates:
33
34     my_server:
35       type: tosca.nodes.Compute
36       capabilities:
37         host:
38           properties:
39             disk_size: 10 GB
40             num_cpus: { get_input: cpus }
41             mem_size: 4096 MB
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: tosca.nodes.BlockStorage
58       properties:
59         size: { get_input: storage_size }
60         snapshot_id: { get_input: storage_snapshot_id }
61
62     my_server2:
63       type: tosca.nodes.Compute
64       capabilities:
65         host:
66           properties:
67             disk_size: 10 GB
68             num_cpus: { get_input: cpus }
69             mem_size: 4096 MB
70         os:
71           properties:
72             architecture: x86_64
73             type: Linux
74             distribution: Fedora
75             version: 18.0
76       requirements:
77          - local_storage:
78              node: my_storage2
79              relationship:
80                type: AttachesTo
81                properties:
82                  location: { get_input: storage_location }
83
84     my_storage2:
85       type: tosca.nodes.BlockStorage
86       properties:
87         size: { get_input: storage_size }
88         snapshot_id: { get_input: storage_snapshot_id }
89
90   outputs:
91     server_ip_1:
92       description: The private IP address of the application's first server.
93       value: { get_attribute: [ my_server, private_address ] }
94     server_ip_2:
95       description: The private IP address of the application's second server.
96       value: { get_attribute: [ my_server2, private_address ] }
97     volume_id_1:
98       description: The volume id of the first block storage instance.
99       value: { get_property: [ my_storage, volume_id ] } # ARIA NOTE: wrong in spec
100     volume_id_2:
101       description: The volume id of the second block storage instance.
102       value: { get_property: [ my_storage2, volume_id ] } # ARIA NOTE: wrong in spec