blob: ac7768f7ae97b979669d981288d800d577f4f716 [file] [log] [blame]
Andy Bavier2dc220c2017-10-12 15:10:30 -07001
2{#
3Copyright 2017-present Open Networking Foundation
4
5Licensed under the Apache License, Version 2.0 (the "License");
6you may not use this file except in compliance with the License.
7You may obtain a copy of the License at
8
9http://www.apache.org/licenses/LICENSE-2.0
10
11Unless required by applicable law or agreed to in writing, software
12distributed under the License is distributed on an "AS IS" BASIS,
13WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14See the License for the specific language governing permissions and
15limitations under the License.
16#}
17
18
19tosca_definitions_version: tosca_simple_yaml_1_0
20
21description: created by platform-install, need to add M-CORD services later
22
23imports:
24 - custom_types/xos.yaml
25 - custom_types/internetemulator.yaml
26
27topology_template:
28 node_templates:
29
30# site, image, fully created in deployment.yaml
31 {{ site_name }}:
32 type: tosca.nodes.Site
33
34 m1.small:
35 type: tosca.nodes.Flavor
36 m1.large:
37 type: tosca.nodes.Flavor
38 m1.medium:
39 type: tosca.nodes.Flavor
40 m1.xlarge:
41 type: tosca.nodes.Flavor
42
43 trusty-server-multi-nic:
44 type: tosca.nodes.Image
45
46# management networks, fully created in management-net.yaml
47 management:
48 type: tosca.nodes.network.Network.XOS
49 properties:
50 no-create: true
51 no-delete: true
52 no-update: true
53
54{% if use_management_hosts %}
55 management_hosts:
56 type: tosca.nodes.network.Network.XOS
57 properties:
58 no-create: true
59 no-delete: true
60 no-update: true
61{% endif %}
62
Andy Bavier79a95c02017-10-13 14:46:44 -070063# sgi_network is for connectivity between VMs, fully created in sgi-net.yaml
64 sgi_network:
Andy Bavier2dc220c2017-10-12 15:10:30 -070065 type: tosca.nodes.network.Network.XOS
66 properties:
67 no-create: true
68 no-delete: true
69 no-update: true
70
71
72# CORD Services
73 service#internetemulator:
74 type: tosca.nodes.InternetEmulatorService
75 properties:
76 public_key: { get_artifact: [ SELF, pubkey, LOCAL_FILE] }
77 private_key_fn: /opt/xos/services/internetemulator/keys/mcord_rsa
78 artifacts:
79 pubkey: /opt/cord_profile/key_import/mcord_rsa.pub
80
81# CORD Slices
82 mysite_internetemulator:
83 description: Internet Emulator Slice
84 type: tosca.nodes.Slice
85 properties:
86 network: noauto
87 requirements:
88 - site:
89 node: mysite
90 relationship: tosca.relationships.MemberOfSite
91 - internetemulator_service:
92 node: service#internetemulator
93 relationship: tosca.relationships.MemberOfService
94 - default_image:
95 node: trusty-server-multi-nic
96 relationship: tosca.relationships.DefaultImage
97 - default_flavor:
98 node: m1.small
99 relationship: tosca.relationships.DefaultFlavor
100 - connection_to_management:
101 node: management
Andy Bavier79a95c02017-10-13 14:46:44 -0700102 relationship: tosca.relationships.ConnectsToNetwork
103 - connection_to_sgi_network:
104 node: sgi_network
105 relationship: tosca.relationships.ConnectsToNetwork
106
107# CORD Service Instances
108 serviceinstance#internetemulator:
109 type: tosca.nodes.InternetEmulatorServiceInstance
110 requirements:
111 - tenant:
112 node: service#internetemulator
113 relationship: tosca.relationships.TenantOfService
114 - dependency:
115 node: {{ site_name }}_internetemulator
116 relationship: tosca.relationships.DependsOn