1 heat_template_version: 2013-05-23
 
   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
 
  46     type: OS::Cinder::VolumeAttachment
 
  49         get_resource: my_web_app_tier_1
 
  50       mountpoint: /default_location
 
  52         get_resource: my_storage
 
  55     type: OS::Nova::Server
 
  58       image: fedora-amd64-heat-config
 
  59       user_data_format: SOFTWARE_CONFIG
 
  64     type: OS::Cinder::VolumeAttachment
 
  67         get_resource: my_web_app_tier_2
 
  68       mountpoint: /some_other_data_location
 
  70         get_resource: my_storage
 
  74     description: The private IP address of the applications first tier.
 
  80     description: The private IP address of the applications second tier.
 
  86     description: The volume id of the block storage instance.
 
  88       get_resource: my_storage