Use native resource for nova-compute-instance
authorClint Byrum <clint@fewbar.com>
Fri, 13 Sep 2013 15:59:37 +0000 (08:59 -0700)
committerClint Byrum <clint@fewbar.com>
Fri, 13 Sep 2013 16:08:53 +0000 (09:08 -0700)
Change-Id: I347465b32578467ca3d9f55ea2994d832fcd8b3f

nova-compute-instance.yaml

index a3fef08..3a29f01 100644 (file)
@@ -5,7 +5,7 @@ Parameters:
     Description: Name of an existing EC2 KeyPair to enable SSH access to the instances
     Type: String
     Default: default
-  InstanceType:
+  Flavor:
     Description: Use this flavor
     Type: String
     Default: baremetal
@@ -63,12 +63,12 @@ Resources:
       UserName:
         Ref: ComputeUser
   NovaCompute0:
-    Type: AWS::EC2::Instance
+    Type: OS::Nova::Server
     Properties:
-      ImageId:
+      image:
         {Ref: NovaImage}
-      InstanceType: {Ref: InstanceType}
-      KeyName: {Ref: KeyName}
+      flavor: {Ref: Flavor}
+      key_name: {Ref: KeyName}
     Metadata:
       os-collect-config:
         cfn: