blob: 57ceab7a336e4093fa4bcd9415c20a378be6f53f [file] [log] [blame]
Pingping Linb7a7d2b2016-08-19 18:11:36 +00001tosca_definitions_version: tosca_simple_yaml_1_0
2
3description: >
4 * Adds OpenCloud Sites, Deployments, and Controllers.
5
6imports:
7 - custom_types/xos.yaml
8
9topology_template:
10 node_templates:
11
12 MyDeployment:
13 type: tosca.nodes.Deployment
14 properties:
15 flavors: m1.xlarge, m1.large, m1.medium, m1.small
16
17 m1.xlarge:
18 type: tosca.nodes.Flavor
19
20
21 MyOpenStack:
22 type: tosca.nodes.Controller
23 requirements:
24 - deployment:
25 node: MyDeployment
26 relationship: tosca.relationships.ControllerDeployment
27 properties:
28 backend_type: OpenStack
29 version: Kilo
30 auth_url: { get_script_env: [ SELF, adminrc, OS_AUTH_URL, LOCAL_FILE] }
31 admin_user: { get_script_env: [ SELF, adminrc, OS_USERNAME, LOCAL_FILE] }
32 admin_password: { get_script_env: [ SELF, adminrc, OS_PASSWORD, LOCAL_FILE] }
33 admin_tenant: { get_script_env: [ SELF, adminrc, OS_TENANT_NAME, LOCAL_FILE] }
34 domain: Default
35 artifacts:
36 adminrc: /root/setup/admin-openrc.sh
37
38 mysite:
39 type: tosca.nodes.Site
40 properties:
41 display_name: MySite
42 site_url: http://xosproject.org/
43 requirements:
44 - deployment:
45 node: MyDeployment
46 relationship: tosca.relationships.SiteDeployment
47 requirements:
48 - controller:
49 node: MyOpenStack
50 relationship: tosca.relationships.UsesController
51 Topology:
52 type: tosca.nodes.DashboardView
53 properties:
54 url: template:xosMcordTopology
55
56 # This user already exists in XOS with this password
57 # It's an example of how to create new users
58 padmin@vicci.org:
59 type: tosca.nodes.User
60 properties:
61 is_admin: true
62 is_active: true
63 firstname: XOS
64 lastname: admin
65 password: letmein
66 requirements:
67 - site:
68 node: mysite
69 relationship: tosca.relationships.MemberOfSite
70 - mcord_dashboard:
71 node: Topology
72 relationship: tosca.relationships.UsesDashboard
73
74 johndoe@stanford.us:
75 type: tosca.nodes.User
76 properties:
77 is_active: true
78 password: letmein
79 firstname: john
80 lastname: doe
81 requirements:
82 - site:
83 node: mysite
84 relationship: tosca.relationships.MemberOfSite
85
86 # A subscriber
Pingping Linb5a1a0a2016-09-08 01:14:48 +000087 #Stanford:
88 # type: tosca.nodes.CORDSubscriber
89 # properties:
90 # service_specific_id: 123
91 # firewall_enable: false
92 # cdn_enable: false
93 # url_filter_enable: false
94 # url_filter_level: R
95 # requirements:
96 # - house_admin:
97 # node: johndoe@stanford.us
98 # relationship: tosca.relationships.AdminPrivilege
Pingping Linb7a7d2b2016-08-19 18:11:36 +000099
Pingping Linb5a1a0a2016-09-08 01:14:48 +0000100 #Barbera Lapinski:
101 # type: tosca.nodes.CORDUser
102 # properties:
103 # mac: 01:02:03:04:05:06
104 # level: PG_13
105 # requirements:
106 # - household:
107 # node: Stanford
108 # relationship: tosca.relationships.SubscriberDevice
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000109
Pingping Linb5a1a0a2016-09-08 01:14:48 +0000110 #Norbert Shumway:
111 # type: tosca.nodes.CORDUser
112 # properties:
113 # mac: 90:E2:BA:82:F9:75
114 # level: PG_13
115 # requirements:
116 # - household:
117 # node: Stanford
118 # relationship: tosca.relationships.SubscriberDevice
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000119
Pingping Linb5a1a0a2016-09-08 01:14:48 +0000120 #Fay Muldoon:
121 # type: tosca.nodes.CORDUser
122 # properties:
123 # mac: 68:5B:35:9D:91:D5
124 # level: PG_13
125 # requirements:
126 # - household:
127 # node: Stanford
128 # relationship: tosca.relationships.SubscriberDevice
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000129
Pingping Linb5a1a0a2016-09-08 01:14:48 +0000130 #Janene Earnest:
131 # type: tosca.nodes.CORDUser
132 # properties:
133 # mac: 34:36:3B:C9:B6:A6
134 # level: PG_13
135 # requirements:
136 # - household:
137 # node: Stanford
138 # relationship: tosca.relationships.SubscriberDevice
Pingping Linb7a7d2b2016-08-19 18:11:36 +0000139
140 RRU:
141 type: tosca.nodes.Service
142 properties:
143 view_url: /mcord/?service=vBBU
144 icon_url: /static/mCordServices/service_rru.png
145 kind: RAN
146
147 eSON:
148 type: tosca.nodes.Service
149 properties:
150 icon_url: /static/mCordServices/service_server.png
151 view_url: http://www.google.com
152 kind: RAN
153
154 # EPC
155 vMME:
156 type: tosca.nodes.Service
157 properties:
158 icon_url: /static/mCordServices/service_server.png
159 view_url: /mcord/?service=vMME
160 kind: vEPC
161
162 vSGW:
163 type: tosca.nodes.Service
164 properties:
165 view_url: /mcord/?service=vSGW
166 icon_url: /static/mCordServices/service_server.png
167 kind: vEPC
168
169
170 # EDGE
171 Cache:
172 type: tosca.nodes.Service
173 properties:
174 view_url: /mcord/?service=Cache
175 icon_url: /static/mCordServices/service_cache.png
176 kind: EDGE
177
178 Firewall:
179 type: tosca.nodes.Service
180 properties:
181 view_url: /mcord/?service=Firewall
182 icon_url: /static/mCordServices/service_firewall.png
183 kind: EDGE
184
185 Video Optimization:
186 type: tosca.nodes.Service
187 properties:
188 view_url: /mcord/?service=Video%20Optimization
189 icon_url: /static/mCordServices/service_video.png
190 kind: EDGE
191
192 RRU:
193 type: tosca.nodes.Service
194 properties:
195 view_url: /mcord/?service=vBBU
196 icon_url: /static/mCordServices/service_rru.png
197 kind: RAN
198 eSON:
199 type: tosca.nodes.Service
200 properties:
201 icon_url: /static/mCordServices/service_server.png
202 view_url: http://www.google.com
203 kind: RAN
204
205 # EPC
206 vMME:
207 type: tosca.nodes.Service
208 properties:
209 icon_url: /static/mCordServices/service_server.png
210 view_url: /mcord/?service=vMME
211 kind: vEPC
212
213 vSGW:
214 type: tosca.nodes.Service
215 properties:
216 view_url: /mcord/?service=vSGW
217 icon_url: /static/mCordServices/service_server.png
218 kind: vEPC
219
220 vPGWC:
221 type: tosca.nodes.Service
222 properties:
223 view_url: /mcord/?service=vPGWC
224 icon_url: /static/mCordServices/service_server.png
225 kind: vEPC
226
227 # EDGE
228 Cache:
229 type: tosca.nodes.Service
230 properties:
231 view_url: /mcord/?service=Cache
232 icon_url: /static/mCordServices/service_cache.png
233 kind: EDGE
234
235 Firewall:
236 type: tosca.nodes.Service
237 properties:
238 view_url: /mcord/?service=Firewall
239 icon_url: /static/mCordServices/service_firewall.png
240 kind: EDGE
241
242 Video Optimization:
243 type: tosca.nodes.Service
244 properties:
245 view_url: /mcord/?service=Video%20Optimization
246 icon_url: /static/mCordServices/service_video.png
247 kind: EDGE
248