[ceph] Add ability to spawn osds with additional volumes
Related-Prod: PRODX-19091
Change-Id: I1a53a35906f0596be3d186182aca5f9301f88df8
diff --git a/de/heat-templates/fragments/CinderVolumeVM.yaml b/de/heat-templates/fragments/CinderVolumeVM.yaml
new file mode 100644
index 0000000..f0dc1a9
--- /dev/null
+++ b/de/heat-templates/fragments/CinderVolumeVM.yaml
@@ -0,0 +1,30 @@
+heat_template_version: queens
+
+parameters:
+ volume_size:
+ type: number
+ description: Size of volume to attach to instance
+ default: 50
+
+ volume_type:
+ type: string
+ description: The type of the volume mapping to a backend, if any.
+ default: standard-iops
+
+ instance_id:
+ type: string
+ description: Server to attach volume to
+
+resources:
+ volume:
+ type: OS::Cinder::Volume
+ properties:
+ volume_type: { get_param: volume_type }
+ size: { get_param: volume_size }
+ description: Volume for stack
+
+ volume_attachment:
+ type: OS::Cinder::VolumeAttachment
+ properties:
+ volume_id: { get_resource: volume }
+ instance_uuid: { get_param: instance_id }
\ No newline at end of file