1 heat_template_version: 2014-10-16
 
   4   TOSCA simple profile with a Single Block Storage node shared by 2-Tier
 
   5   Application with custom AttachesTo Type and implied relationships.
 
  10     description: Number of CPUs for the server.
 
  20     description: Size of the storage to be created.
 
  24     description: Optional identifier for an existing snapshot to use when creating storage.
 
  29     type: OS::Cinder::Volume
 
  32         get_param: storage_size
 
  34         get_param: storage_snapshot_id
 
  37     type: OS::Nova::Server
 
  40       image: fedora-amd64-heat-config
 
  41       user_data_format: SOFTWARE_CONFIG
 
  42       software_config_transport: POLL_SERVER_HEAT
 
  47     type: OS::Cinder::VolumeAttachment
 
  50         get_resource: my_web_app_tier_1
 
  51       mountpoint: /default_location
 
  53         get_resource: my_storage
 
  56     type: OS::Nova::Server
 
  59       image: fedora-amd64-heat-config
 
  60       user_data_format: SOFTWARE_CONFIG
 
  61       software_config_transport: POLL_SERVER_HEAT
 
  66     type: OS::Cinder::VolumeAttachment
 
  69         get_resource: my_web_app_tier_2
 
  70       mountpoint: /some_other_data_location
 
  72         get_resource: my_storage
 
  76     description: The private IP address of the applications first tier.
 
  82     description: The private IP address of the applications second tier.
 
  88     description: The volume id of the block storage instance.
 
  90       get_resource: my_storage