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 implied relationships.
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 type: tosca.nodes.Compute
37 num_cpus: { get_input: cpus }
48 relationship: MyAttachesTo
51 type: tosca.nodes.Compute
56 num_cpus: { get_input: cpus }
70 location: /some_other_data_location
73 type: tosca.nodes.BlockStorage
75 size: { get_input: storage_size }
76 snapshot_id: { get_input: storage_snapshot_id }
80 description: The private IP address of the application's first tier.
81 value: { get_attribute: [my_web_app_tier_1, private_address] }
83 description: The private IP address of the application's second tier.
84 value: { get_attribute: [my_web_app_tier_2, private_address] }
86 description: The volume id of the block storage instance.
87 value: { get_attribute: [my_storage, volume_id] }