1 tosca_definitions_version: tosca_simple_yaml_1_0
 
   4   TOSCA simple profile with server and attached block storage using a custom AttachesTo Relationship Type.
 
   8      derived_from: AttachesTo
 
  14       description: Number of CPUs for the server.
 
  16         - valid_values: [ 1, 2, 4, 8 ]
 
  18       type: scalar-unit.size
 
  19       description: Size of the storage to be created.
 
  24         Optional identifier for an existing snapshot to use when creating storage.
 
  27       description: Block storage mount point (filesystem path).
 
  36             num_cpus: { get_input: cpus }
 
  47             # Declare custom AttachesTo type using the 'relationship' keyword
 
  49               type: MyCustomAttachesTo
 
  51                 location: { get_input: storage_location }
 
  55         size: { get_input: storage_size }
 
  56         snapshot_id: { get_input: storage_snapshot_id }
 
  60       description: The private IP address of the newly created compute instance.
 
  61       value: { get_attribute: [my_server, private_address] }
 
  63       description: The volume id of the block storage instance.
 
  64       value: { get_attribute: [my_storage, volume_id] }