Andy Bavier | d37f8ee | 2018-04-12 09:54:10 -0700 | [diff] [blame] | 1 | --- |
| 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 | |
| 23 | tosca_definitions_version: tosca_simple_yaml_1_0 |
| 24 | |
| 25 | imports: |
| 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 |
| 32 | |
| 33 | description: openstack extensions to deployment |
| 34 | |
| 35 | topology_template: |
| 36 | node_templates: |
| 37 | |
| 38 | # Images and flavors |
Andy Bavier | c0aa0b9 | 2018-04-23 11:28:38 -0700 | [diff] [blame] | 39 | Ubuntu-14.04: |
Andy Bavier | d37f8ee | 2018-04-12 09:54:10 -0700 | [diff] [blame] | 40 | type: tosca.nodes.Image |
| 41 | properties: |
Andy Bavier | c0aa0b9 | 2018-04-23 11:28:38 -0700 | [diff] [blame] | 42 | name: "Ubuntu 14.04 64-bit" |
Andy Bavier | d37f8ee | 2018-04-12 09:54:10 -0700 | [diff] [blame] | 43 | must-exist: true |
| 44 | |
Andy Bavier | c0aa0b9 | 2018-04-23 11:28:38 -0700 | [diff] [blame] | 45 | m1.small: |
Andy Bavier | d37f8ee | 2018-04-12 09:54:10 -0700 | [diff] [blame] | 46 | type: tosca.nodes.Flavor |
| 47 | properties: |
Andy Bavier | c0aa0b9 | 2018-04-23 11:28:38 -0700 | [diff] [blame] | 48 | name: m1.small |
Andy Bavier | d37f8ee | 2018-04-12 09:54:10 -0700 | [diff] [blame] | 49 | must-exist: true |
| 50 | |
| 51 | MyDeployment: |
| 52 | type: tosca.nodes.Deployment |
| 53 | properties: |
| 54 | name: MyDeployment |
| 55 | must-exist: true |
| 56 | |
| 57 | mysite_test: |
| 58 | description: Test Slice |
| 59 | type: tosca.nodes.Slice |
| 60 | properties: |
| 61 | name: mysite_test |
| 62 | must-exist: true |
| 63 | |
| 64 | compute1: |
| 65 | type: tosca.nodes.Node |
| 66 | properties: |
| 67 | name: compute1 |
| 68 | must-exist: true |
| 69 | |
| 70 | test_instance: |
| 71 | description: Test Instance |
| 72 | type: tosca.nodes.Instance |
| 73 | properties: |
| 74 | name: test_instance |
| 75 | requirements: |
| 76 | - image: |
Andy Bavier | c0aa0b9 | 2018-04-23 11:28:38 -0700 | [diff] [blame] | 77 | node: Ubuntu-14.04 |
Andy Bavier | d37f8ee | 2018-04-12 09:54:10 -0700 | [diff] [blame] | 78 | relationship: tosca.relationships.BelongsToOne |
| 79 | - deployment: |
| 80 | node: MyDeployment |
| 81 | relationship: tosca.relationships.BelongsToOne |
| 82 | - flavor: |
Andy Bavier | c0aa0b9 | 2018-04-23 11:28:38 -0700 | [diff] [blame] | 83 | node: m1.small |
Andy Bavier | d37f8ee | 2018-04-12 09:54:10 -0700 | [diff] [blame] | 84 | relationship: tosca.relationships.BelongsToOne |
| 85 | - slice: |
| 86 | node: mysite_test |
| 87 | relationship: tosca.relationships.BelongsToOne |
| 88 | - node: |
| 89 | node: compute1 |
| 90 | relationship: tosca.relationships.BelongsToOne |
| 91 | |