CORD-3128 update openstack-instance-tosca.yaml for base-openstack profile
Change-Id: I2533598e6d80fcb0ee30f24549ae9fba0b3a3abf
diff --git a/examples/openstack-instance-tosca.yaml b/examples/openstack-instance-tosca.yaml
index 7c9c941..9666d64 100644
--- a/examples/openstack-instance-tosca.yaml
+++ b/examples/openstack-instance-tosca.yaml
@@ -29,6 +29,7 @@
- custom_types/node.yaml
- custom_types/instance.yaml
- custom_types/slice.yaml
+ - custom_types/site.yaml
description: openstack extensions to deployment
@@ -40,7 +41,9 @@
type: tosca.nodes.Image
properties:
name: "Ubuntu 14.04 64-bit"
- must-exist: true
+ disk_format: QCOW2
+ container_format: BARE
+ path: https://github.com/opencord/platform-install/releases/download/vms/trusty-server-cloudimg-amd64-disk1.img.20170201
m1.small:
type: tosca.nodes.Flavor
@@ -51,7 +54,13 @@
MyDeployment:
type: tosca.nodes.Deployment
properties:
- name: MyDeployment
+ name: mydeployment
+ must-exist: true
+
+ mysite:
+ type: tosca.nodes.Site
+ properties:
+ name: mysite
must-exist: true
mysite_test:
@@ -59,12 +68,15 @@
type: tosca.nodes.Slice
properties:
name: mysite_test
- must-exist: true
+ requirements:
+ - site:
+ node: mysite
+ relationship: tosca.relationships.BelongsToOne
compute1:
type: tosca.nodes.Node
properties:
- name: compute1
+ name: insert-node-hostname-here
must-exist: true
test_instance:
@@ -88,4 +100,3 @@
- node:
node: compute1
relationship: tosca.relationships.BelongsToOne
-