blob: 3c7bf8b33f0f19467c852cd485697f577fefe619 [file] [log] [blame]
Pingping Lin3df9b352016-04-01 01:53:19 -07001tosca_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 Stanford_Deployment:
13 type: tosca.nodes.Deployment
14 properties:
15 flavors: m1.large, m1.medium, m1.small
16
17 computeBBU1:
18 type: tosca.nodes.Node
19 requirements:
20 - site:
21 node: Stanford_University
22 relationship: tosca.relationships.MemberOfSite
23 - deployment:
24 node: Stanford_Deployment
25 relationship: tosca.relationships.MemberOfDeployment
26
27 computeBBU2:
28 type: tosca.nodes.Node
29 requirements:
30 - site:
31 node: Stanford_University
32 relationship: tosca.relationships.MemberOfSite
33 - deployment:
34 node: Stanford_Deployment
35 relationship: tosca.relationships.MemberOfDeployment
36
37 McordOpenStack:
38 type: tosca.nodes.Controller
39 requirements:
40 - deployment:
41 node: Stanford_Deployment
42 relationship: tosca.relationships.ControllerDeployment
43 properties:
44 backend_type: OpenStack
45 version: Kilo
46 auth_url: { get_script_env: [ SELF, adminrc, OS_AUTH_URL, LOCAL_FILE] }
47 admin_user: { get_script_env: [ SELF, adminrc, OS_USERNAME, LOCAL_FILE] }
48 admin_password: { get_script_env: [ SELF, adminrc, OS_PASSWORD, LOCAL_FILE] }
49 admin_tenant: { get_script_env: [ SELF, adminrc, OS_TENANT_NAME, LOCAL_FILE] }
50 domain: Default
51 artifacts:
52 adminrc: /root/setup/admin-openrc.sh
53
54 Stanford_University:
55 type: tosca.nodes.Site
56 properties:
57 display_name: Stanford University
58 site_url: http://xosproject.org/
59 requirements:
60 - deployment:
61 node: Stanford_Deployment
62 relationship: tosca.relationships.SiteDeployment
63 requirements:
64 - controller:
65 node: McordOpenStack
66 relationship: tosca.relationships.UsesController
67
68 # This user already exists in XOS with this password
69 # It's an example of how to create new users
70 padmin@vicci.org:
71 type: tosca.nodes.User
72 requirements:
73 - site:
74 node: Stanford_University
75 relationship: tosca.relationships.MemberOfSite
76 properties:
77 is_admin: true
78 is_active: true
79 firstname: XOS
80 lastname: admin
81 password: letmein
82
83 johndoe@stanford.us:
84 type: tosca.nodes.User
85 properties:
86 password: letmein
87 firstname: john
88 lastname: doe
89 requirements:
90 - site:
91 node: Stanford_University
92 relationship: tosca.relationships.MemberOfSite
93
94 # A subscriber
95 Stanford:
96 type: tosca.nodes.CORDSubscriber
97 properties:
98 service_specific_id: 123
99 firewall_enable: false
100 cdn_enable: false
101 url_filter_enable: false
102 url_filter_level: R
103 requirements:
104 - house_admin:
105 node: johndoe@stanford.us
106 relationship: tosca.relationships.AdminPrivilege
107
108 Barbera Lapinski:
109 type: tosca.nodes.CORDUser
110 properties:
111 mac: 01:02:03:04:05:06
112 level: PG_13
113 requirements:
114 - household:
115 node: Stanford
116 relationship: tosca.relationships.SubscriberDevice
117
118 Norbert Shumway:
119 type: tosca.nodes.CORDUser
120 properties:
121 mac: 90:E2:BA:82:F9:75
122 level: PG_13
123 requirements:
124 - household:
125 node: Stanford
126 relationship: tosca.relationships.SubscriberDevice
127
128 Fay Muldoon:
129 type: tosca.nodes.CORDUser
130 properties:
131 mac: 68:5B:35:9D:91:D5
132 level: PG_13
133 requirements:
134 - household:
135 node: Stanford
136 relationship: tosca.relationships.SubscriberDevice
137
138 Janene Earnest:
139 type: tosca.nodes.CORDUser
140 properties:
141 mac: 34:36:3B:C9:B6:A6
142 level: PG_13
143 requirements:
144 - household:
145 node: Stanford
146 relationship: tosca.relationships.SubscriberDevice
147
148 RRU:
149 type: tosca.nodes.Service
150 properties:
151 view_url: /mcord/?service=vBBU
152 icon_url: /static/mCordServices/service_rru.png
153 kind: RAN
154 vBBU:
155 type: tosca.nodes.Service
156 properties:
157 view_url: /mcord/?service=vBBU
158 icon_url: /static/mCordServices/service_server.png
159 kind: RAN
160
161 eSON:
162 type: tosca.nodes.Service
163 properties:
164 icon_url: /static/mCordServices/service_server.png
165 view_url: http://www.google.com
166 kind: RAN
167
168 # EPC
169 vMME:
170 type: tosca.nodes.Service
171 properties:
172 icon_url: /static/mCordServices/service_server.png
173 view_url: /mcord/?service=vMME
174 kind: vEPC
175
176 vSGW:
177 type: tosca.nodes.Service
178 properties:
179 view_url: /mcord/?service=vSGW
180 icon_url: /static/mCordServices/service_server.png
181 kind: vEPC
182
183 vPGW:
184 type: tosca.nodes.Service
185 properties:
186 view_url: /mcord/?service=vPGW
187 icon_url: /static/mCordServices/service_server.png
188 kind: vEPC
189
190 # EDGE
191 Cache:
192 type: tosca.nodes.Service
193 properties:
194 view_url: /mcord/?service=Cache
195 icon_url: /static/mCordServices/service_cache.png
196 kind: EDGE
197
198 Firewall:
199 type: tosca.nodes.Service
200 properties:
201 view_url: /mcord/?service=Firewall
202 icon_url: /static/mCordServices/service_firewall.png
203 kind: EDGE
204
205 Video Optimization:
206 type: tosca.nodes.Service
207 properties:
208 view_url: /mcord/?service=Video%20Optimization
209 icon_url: /static/mCordServices/service_video.png
210 kind: EDGE
211
212