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: |
Andy Bavier | d37f8ee | 2018-04-12 09:54:10 -0700 | [diff] [blame] | 26 | - custom_types/flavor.yaml |
| 27 | - custom_types/image.yaml |
| 28 | - custom_types/node.yaml |
| 29 | - custom_types/instance.yaml |
| 30 | - custom_types/slice.yaml |
Scott Baker | bb08441 | 2018-06-04 12:06:55 -0700 | [diff] [blame] | 31 | - custom_types/site.yaml |
Andy Bavier | d37f8ee | 2018-04-12 09:54:10 -0700 | [diff] [blame] | 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" |
Scott Baker | bb08441 | 2018-06-04 12:06:55 -0700 | [diff] [blame] | 43 | disk_format: QCOW2 |
| 44 | container_format: BARE |
| 45 | path: https://github.com/opencord/platform-install/releases/download/vms/trusty-server-cloudimg-amd64-disk1.img.20170201 |
Andy Bavier | d37f8ee | 2018-04-12 09:54:10 -0700 | [diff] [blame] | 46 | |
Andy Bavier | c0aa0b9 | 2018-04-23 11:28:38 -0700 | [diff] [blame] | 47 | m1.small: |
Andy Bavier | d37f8ee | 2018-04-12 09:54:10 -0700 | [diff] [blame] | 48 | type: tosca.nodes.Flavor |
| 49 | properties: |
Andy Bavier | c0aa0b9 | 2018-04-23 11:28:38 -0700 | [diff] [blame] | 50 | name: m1.small |
Andy Bavier | d37f8ee | 2018-04-12 09:54:10 -0700 | [diff] [blame] | 51 | must-exist: true |
| 52 | |
Scott Baker | bb08441 | 2018-06-04 12:06:55 -0700 | [diff] [blame] | 53 | mysite: |
| 54 | type: tosca.nodes.Site |
| 55 | properties: |
| 56 | name: mysite |
Andy Bavier | d37f8ee | 2018-04-12 09:54:10 -0700 | [diff] [blame] | 57 | must-exist: true |
| 58 | |
| 59 | mysite_test: |
| 60 | description: Test Slice |
| 61 | type: tosca.nodes.Slice |
| 62 | properties: |
| 63 | name: mysite_test |
Scott Baker | bb08441 | 2018-06-04 12:06:55 -0700 | [diff] [blame] | 64 | requirements: |
| 65 | - site: |
| 66 | node: mysite |
| 67 | relationship: tosca.relationships.BelongsToOne |
Andy Bavier | d37f8ee | 2018-04-12 09:54:10 -0700 | [diff] [blame] | 68 | |
| 69 | compute1: |
| 70 | type: tosca.nodes.Node |
| 71 | properties: |
Scott Baker | bb08441 | 2018-06-04 12:06:55 -0700 | [diff] [blame] | 72 | name: insert-node-hostname-here |
Andy Bavier | d37f8ee | 2018-04-12 09:54:10 -0700 | [diff] [blame] | 73 | must-exist: true |
| 74 | |
| 75 | test_instance: |
| 76 | description: Test Instance |
| 77 | type: tosca.nodes.Instance |
| 78 | properties: |
| 79 | name: test_instance |
| 80 | requirements: |
| 81 | - image: |
Andy Bavier | c0aa0b9 | 2018-04-23 11:28:38 -0700 | [diff] [blame] | 82 | node: Ubuntu-14.04 |
Andy Bavier | d37f8ee | 2018-04-12 09:54:10 -0700 | [diff] [blame] | 83 | relationship: tosca.relationships.BelongsToOne |
Andy Bavier | d37f8ee | 2018-04-12 09:54:10 -0700 | [diff] [blame] | 84 | - flavor: |
Andy Bavier | c0aa0b9 | 2018-04-23 11:28:38 -0700 | [diff] [blame] | 85 | node: m1.small |
Andy Bavier | d37f8ee | 2018-04-12 09:54:10 -0700 | [diff] [blame] | 86 | relationship: tosca.relationships.BelongsToOne |
| 87 | - slice: |
| 88 | node: mysite_test |
| 89 | relationship: tosca.relationships.BelongsToOne |
| 90 | - node: |
| 91 | node: compute1 |
| 92 | relationship: tosca.relationships.BelongsToOne |