1 tosca_definitions_version: tosca_simple_yaml_1_0
4 TOSCA simple profile with a single Block Storage node shared by 2-Tier Application with custom AttachesTo Type and explicit Relationship Templates.
8 derived_from: tosca.relationships.AttachesTo
12 default: /default_location
18 description: Number of CPUs for the server.
20 - valid_values: [ 1, 2, 4, 8 ]
22 type: scalar-unit.size
24 description: Size of the storage to be created.
28 Optional identifier for an existing snapshot to use when creating storage.
32 Block storage mount point (filesystem path).
37 type: tosca.nodes.Compute
42 num_cpus: { get_input: cpus }
53 relationship: storage_attachesto_1
56 type: tosca.nodes.Compute
61 num_cpus: { get_input: cpus }
72 relationship: storage_attachesto_2
75 type: tosca.nodes.BlockStorage
77 size: { get_input: storage_size }
78 snapshot_id: { get_input: storage_snapshot_id }
80 relationship_templates:
84 location: /my_data_location
89 location: /some_other_data_location
92 description: The private IP address of the application's first tier.
93 value: { get_attribute: [my_web_app_tier_1, private_address] }
95 description: The private IP address of the application's second tier.
96 value: { get_attribute: [my_web_app_tier_2, private_address] }
98 description: The volume id of the block storage instance.
99 value: { get_attribute: [my_storage, volume_id] }