1 tosca_definitions_version: tosca_simple_yaml_1_0
4 TOSCA simple profile with 2 servers each with different attached block storage.
7 template_name: block-storage-6
8 template_author: TOSCA Simple Profile in YAML
9 template_version: '1.0'
16 description: Number of CPUs for the server.
18 - valid_values: [ 1, 2, 4, 8 ]
20 type: scalar-unit.size
22 description: Size of the storage to be created.
26 Optional identifier for an existing snapshot to use when creating storage.
30 Block storage mount point (filesystem path).
35 type: tosca.nodes.Compute
40 num_cpus: { get_input: cpus }
54 location: { get_input: storage_location }
57 type: tosca.nodes.BlockStorage
59 size: { get_input: storage_size }
60 snapshot_id: { get_input: storage_snapshot_id }
63 type: tosca.nodes.Compute
68 num_cpus: { get_input: cpus }
82 location: { get_input: storage_location }
85 type: tosca.nodes.BlockStorage
87 size: { get_input: storage_size }
88 snapshot_id: { get_input: storage_snapshot_id }
92 description: The private IP address of the application's first server.
93 value: { get_attribute: [ my_server, private_address ] }
95 description: The private IP address of the application's second server.
96 value: { get_attribute: [ my_server2, private_address ] }
98 description: The volume id of the first block storage instance.
99 value: { get_property: [ my_storage, volume_id ] } # ARIA NOTE: wrong in spec
101 description: The volume id of the second block storage instance.
102 value: { get_property: [ my_storage2, volume_id ] } # ARIA NOTE: wrong in spec