blob: 9666d640de5eee8b30d1052ccc41fb09c721a72f [file] [log] [blame]
Andy Bavierd37f8ee2018-04-12 09:54:10 -07001---
2
3# Copyright 2018-present Open Networking Foundation
4#
5# Licensed under the Apache License, Version 2.0 (the "License");
6# you may not use this file except in compliance with the License.
7# You may obtain a copy of the License at
8#
9# http://www.apache.org/licenses/LICENSE-2.0
10#
11# Unless required by applicable law or agreed to in writing, software
12# distributed under the License is distributed on an "AS IS" BASIS,
13# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14# See the License for the specific language governing permissions and
15# limitations under the License.
16
17# TOSCA recipe for adding a sample R-CORD subscriber
18#
19# http POST $(minikube service xos-tosca --url)/run \
20# xos-username:admin@opencord.org xos-password:letmein \
21# @./openstack-instance-tosca.yaml
22
23tosca_definitions_version: tosca_simple_yaml_1_0
24
25imports:
26 - custom_types/deployment.yaml
27 - custom_types/flavor.yaml
28 - custom_types/image.yaml
29 - custom_types/node.yaml
30 - custom_types/instance.yaml
31 - custom_types/slice.yaml
Scott Bakerbb084412018-06-04 12:06:55 -070032 - custom_types/site.yaml
Andy Bavierd37f8ee2018-04-12 09:54:10 -070033
34description: openstack extensions to deployment
35
36topology_template:
37 node_templates:
38
39# Images and flavors
Andy Bavierc0aa0b92018-04-23 11:28:38 -070040 Ubuntu-14.04:
Andy Bavierd37f8ee2018-04-12 09:54:10 -070041 type: tosca.nodes.Image
42 properties:
Andy Bavierc0aa0b92018-04-23 11:28:38 -070043 name: "Ubuntu 14.04 64-bit"
Scott Bakerbb084412018-06-04 12:06:55 -070044 disk_format: QCOW2
45 container_format: BARE
46 path: https://github.com/opencord/platform-install/releases/download/vms/trusty-server-cloudimg-amd64-disk1.img.20170201
Andy Bavierd37f8ee2018-04-12 09:54:10 -070047
Andy Bavierc0aa0b92018-04-23 11:28:38 -070048 m1.small:
Andy Bavierd37f8ee2018-04-12 09:54:10 -070049 type: tosca.nodes.Flavor
50 properties:
Andy Bavierc0aa0b92018-04-23 11:28:38 -070051 name: m1.small
Andy Bavierd37f8ee2018-04-12 09:54:10 -070052 must-exist: true
53
54 MyDeployment:
55 type: tosca.nodes.Deployment
56 properties:
Scott Bakerbb084412018-06-04 12:06:55 -070057 name: mydeployment
58 must-exist: true
59
60 mysite:
61 type: tosca.nodes.Site
62 properties:
63 name: mysite
Andy Bavierd37f8ee2018-04-12 09:54:10 -070064 must-exist: true
65
66 mysite_test:
67 description: Test Slice
68 type: tosca.nodes.Slice
69 properties:
70 name: mysite_test
Scott Bakerbb084412018-06-04 12:06:55 -070071 requirements:
72 - site:
73 node: mysite
74 relationship: tosca.relationships.BelongsToOne
Andy Bavierd37f8ee2018-04-12 09:54:10 -070075
76 compute1:
77 type: tosca.nodes.Node
78 properties:
Scott Bakerbb084412018-06-04 12:06:55 -070079 name: insert-node-hostname-here
Andy Bavierd37f8ee2018-04-12 09:54:10 -070080 must-exist: true
81
82 test_instance:
83 description: Test Instance
84 type: tosca.nodes.Instance
85 properties:
86 name: test_instance
87 requirements:
88 - image:
Andy Bavierc0aa0b92018-04-23 11:28:38 -070089 node: Ubuntu-14.04
Andy Bavierd37f8ee2018-04-12 09:54:10 -070090 relationship: tosca.relationships.BelongsToOne
91 - deployment:
92 node: MyDeployment
93 relationship: tosca.relationships.BelongsToOne
94 - flavor:
Andy Bavierc0aa0b92018-04-23 11:28:38 -070095 node: m1.small
Andy Bavierd37f8ee2018-04-12 09:54:10 -070096 relationship: tosca.relationships.BelongsToOne
97 - slice:
98 node: mysite_test
99 relationship: tosca.relationships.BelongsToOne
100 - node:
101 node: compute1
102 relationship: tosca.relationships.BelongsToOne