Merge "Print the name of the stack being deleted"
authorAndrew Grimberg <agrimberg@linuxfoundation.org>
Thu, 14 Dec 2017 22:58:27 +0000 (22:58 +0000)
committerGerrit Code Review <gerrit@opendaylight.org>
Thu, 14 Dec 2017 22:58:27 +0000 (22:58 +0000)
openstack-hot/generic-server.yaml

index dab55a34e1fc3a2c6c9fb24dc5ec1b73517c57b9..c3a5b359f6dbd0ae64d63986561047dd4f321193 100644 (file)
@@ -33,14 +33,17 @@ parameters:
         description: VM Image to spin up
 
 resources:
+    volume:
+        type: "OS::Cinder::Volume"
+        properties:
+            image: {get_param: vm_image}
+            size: 40
     instance:
         type: "OS::Nova::Server"
         properties:
             flavor: {get_param: vm_flavor}
             block_device_mapping_v2:
-                - image: {get_param: vm_image}
-                  delete_on_termination: true
-                  volume_size: 40
+                  - volume_id: {get_resource: volume}
             name:
                 str_replace:
                     template: SILO-JOB_NAME-GROUP-VM_TYPE-INDEX