From ac4779ce0996ce141ef5495f5d4d44c454bdd78a Mon Sep 17 00:00:00 2001 From: Jerry Flood Date: Mon, 30 Oct 2017 12:33:39 -0400 Subject: Add vvG and manifest files Issue: TEST-14 Change-Id: Ia99a52647941518148cd383b02ddb940818e6273 Signed-off-by: Jerry Flood --- heat/vVG/MANIFEST.json | 17 +++++++++++++++++ heat/vVG/base_vvg.env | 3 +++ heat/vVG/base_vvg.yaml | 22 ++++++++++++++++++++++ 3 files changed, 42 insertions(+) create mode 100644 heat/vVG/MANIFEST.json create mode 100644 heat/vVG/base_vvg.env create mode 100644 heat/vVG/base_vvg.yaml (limited to 'heat/vVG') diff --git a/heat/vVG/MANIFEST.json b/heat/vVG/MANIFEST.json new file mode 100644 index 00000000..3f9348b0 --- /dev/null +++ b/heat/vVG/MANIFEST.json @@ -0,0 +1,17 @@ +{ + "name": "", + "description": "", + "data": [ + { + "file": "base_vvg.yaml", + "type": "HEAT", + "isBase": "true", + "data": [ + { + "file": "base_vvg.env", + "type": "HEAT_ENV" + } + ] + } + ] +} \ No newline at end of file diff --git a/heat/vVG/base_vvg.env b/heat/vVG/base_vvg.env new file mode 100644 index 00000000..2b4e72b8 --- /dev/null +++ b/heat/vVG/base_vvg.env @@ -0,0 +1,3 @@ +parameters: + volume_size: 100 + nova_instance: 1234456 \ No newline at end of file diff --git a/heat/vVG/base_vvg.yaml b/heat/vVG/base_vvg.yaml new file mode 100644 index 00000000..c20d4e48 --- /dev/null +++ b/heat/vVG/base_vvg.yaml @@ -0,0 +1,22 @@ +heat_template_version: 2013-05-23 +description: create a Nova instance, a Cinder volume and attach the volume to the instance. + +parameters: + nova_instance: + type: string + label: Instance name or ID + description: ID of the vm to use for the disk to be attached too + volume_size: + type: number + label: GB + description: Size of the volume to be created. +resources: + cinder_volume: + type: OS::Cinder::Volume + properties: + size: { get_param: volume_size } + volume_attachment: + type: OS::Cinder::VolumeAttachment + properties: + volume_id: { get_resource: cinder_volume } + instance_uuid: { get_param: nova_instance } \ No newline at end of file -- cgit 1.2.3-korg