installer_flavor_name: ""
 #Name of the image for instances.
 image_name: ""
+#Whether to use a volume for /dockerdata-nfs or to use ephemeral disk.
+#True by default, most openstack providers offer ssd volumes probably.
+use_volume_for_nfs: true
 #Cidr of private subnet where instances are connected.
 subnet_cidr: "10.1.0.0/24"
 #Start of dhcp allocation range for subnet.
 
     constraints:
       - range: { min: 1 }
         description: "must be a positive number"
+  use_volume_for_nfs:
+    type: boolean
+    label: "use volume for nfs storage"
+    description: "Indicates whether a cinder volume should be used for nfs storage or not. If not checked, the nfs would be stored in the root disk"
+conditions:
+  #Condition for nfs volume usage.
+  use_volume_for_nfs: { get_param: use_volume_for_nfs }
 resources:
   # Security group used to secure access to instances.
   secgroup:
   #Nfs storage volume for first node.
   nfs_storage:
     type: OS::Cinder::Volume
+    condition: use_volume_for_nfs
     properties:
       name: nfs_storage
       size: 50
   #Attachment of volume to first node.
   nfs_storage_attachment:
     type: OS::Cinder::VolumeAttachment
+    condition: use_volume_for_nfs
     properties:
       instance_uuid: { get_attr: [nodes, "resource.0"] }
       volume_id: { get_resource: nfs_storage }
   node0_volumes:
     type: OS::Heat::Value
     properties:
+      #Note that it returns an empty list if nfs volume is disabled.
       value:
-        - [{ get_resource: nfs_storage }, "/dockerdata-nfs"]
+        if:
+          - use_volume_for_nfs
+          - - [{ get_resource: nfs_storage }, "/dockerdata-nfs"]
+          - []
 #Output values
 outputs:
   installer_ip: