Pingping Lin | b7a7d2b | 2016-08-19 18:11:36 +0000 | [diff] [blame] | 1 | tosca_definitions_version: tosca_simple_yaml_1_0 |
| 2 | |
| 3 | description: > |
| 4 | * Adds OpenCloud Sites, Deployments, and Controllers. |
| 5 | |
| 6 | imports: |
| 7 | - custom_types/xos.yaml |
| 8 | |
| 9 | topology_template: |
| 10 | node_templates: |
| 11 | |
Pingping Lin | d215da0 | 2017-05-01 17:04:56 -0700 | [diff] [blame^] | 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 |
Pingping Lin | b7a7d2b | 2016-08-19 18:11:36 +0000 | [diff] [blame] | 19 | |
| 20 | |
Pingping Lin | d215da0 | 2017-05-01 17:04:56 -0700 | [diff] [blame^] | 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 |
Pingping Lin | b7a7d2b | 2016-08-19 18:11:36 +0000 | [diff] [blame] | 37 | |
Pingping Lin | d215da0 | 2017-05-01 17:04:56 -0700 | [diff] [blame^] | 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.MemberOfDeployment |
| 47 | # - controller: |
| 48 | # node: MyOpenStack |
| 49 | # relationship: tosca.relationships.UsesController |
Pingping Lin | b7a7d2b | 2016-08-19 18:11:36 +0000 | [diff] [blame] | 50 | Topology: |
| 51 | type: tosca.nodes.DashboardView |
| 52 | properties: |
| 53 | url: template:xosMcordTopology |
| 54 | |
| 55 | # This user already exists in XOS with this password |
| 56 | # It's an example of how to create new users |
| 57 | padmin@vicci.org: |
| 58 | type: tosca.nodes.User |
| 59 | properties: |
| 60 | is_admin: true |
| 61 | is_active: true |
| 62 | firstname: XOS |
| 63 | lastname: admin |
| 64 | password: letmein |
| 65 | requirements: |
| 66 | - site: |
| 67 | node: mysite |
| 68 | relationship: tosca.relationships.MemberOfSite |
| 69 | - mcord_dashboard: |
| 70 | node: Topology |
| 71 | relationship: tosca.relationships.UsesDashboard |
| 72 | |
| 73 | johndoe@stanford.us: |
| 74 | type: tosca.nodes.User |
| 75 | properties: |
| 76 | is_active: true |
| 77 | password: letmein |
| 78 | firstname: john |
| 79 | lastname: doe |
| 80 | requirements: |
| 81 | - site: |
| 82 | node: mysite |
| 83 | relationship: tosca.relationships.MemberOfSite |
| 84 | |
| 85 | # A subscriber |
Pingping Lin | b5a1a0a | 2016-09-08 01:14:48 +0000 | [diff] [blame] | 86 | #Stanford: |
| 87 | # type: tosca.nodes.CORDSubscriber |
| 88 | # properties: |
| 89 | # service_specific_id: 123 |
| 90 | # firewall_enable: false |
| 91 | # cdn_enable: false |
| 92 | # url_filter_enable: false |
| 93 | # url_filter_level: R |
| 94 | # requirements: |
| 95 | # - house_admin: |
| 96 | # node: johndoe@stanford.us |
| 97 | # relationship: tosca.relationships.AdminPrivilege |
Pingping Lin | b7a7d2b | 2016-08-19 18:11:36 +0000 | [diff] [blame] | 98 | |
Pingping Lin | b5a1a0a | 2016-09-08 01:14:48 +0000 | [diff] [blame] | 99 | #Barbera Lapinski: |
| 100 | # type: tosca.nodes.CORDUser |
| 101 | # properties: |
| 102 | # mac: 01:02:03:04:05:06 |
| 103 | # level: PG_13 |
| 104 | # requirements: |
| 105 | # - household: |
| 106 | # node: Stanford |
| 107 | # relationship: tosca.relationships.SubscriberDevice |
Pingping Lin | b7a7d2b | 2016-08-19 18:11:36 +0000 | [diff] [blame] | 108 | |
Pingping Lin | b5a1a0a | 2016-09-08 01:14:48 +0000 | [diff] [blame] | 109 | #Norbert Shumway: |
| 110 | # type: tosca.nodes.CORDUser |
| 111 | # properties: |
| 112 | # mac: 90:E2:BA:82:F9:75 |
| 113 | # level: PG_13 |
| 114 | # requirements: |
| 115 | # - household: |
| 116 | # node: Stanford |
| 117 | # relationship: tosca.relationships.SubscriberDevice |
Pingping Lin | b7a7d2b | 2016-08-19 18:11:36 +0000 | [diff] [blame] | 118 | |
Pingping Lin | b5a1a0a | 2016-09-08 01:14:48 +0000 | [diff] [blame] | 119 | #Fay Muldoon: |
| 120 | # type: tosca.nodes.CORDUser |
| 121 | # properties: |
| 122 | # mac: 68:5B:35:9D:91:D5 |
| 123 | # level: PG_13 |
| 124 | # requirements: |
| 125 | # - household: |
| 126 | # node: Stanford |
| 127 | # relationship: tosca.relationships.SubscriberDevice |
Pingping Lin | b7a7d2b | 2016-08-19 18:11:36 +0000 | [diff] [blame] | 128 | |
Pingping Lin | b5a1a0a | 2016-09-08 01:14:48 +0000 | [diff] [blame] | 129 | #Janene Earnest: |
| 130 | # type: tosca.nodes.CORDUser |
| 131 | # properties: |
| 132 | # mac: 34:36:3B:C9:B6:A6 |
| 133 | # level: PG_13 |
| 134 | # requirements: |
| 135 | # - household: |
| 136 | # node: Stanford |
| 137 | # relationship: tosca.relationships.SubscriberDevice |
Pingping Lin | b7a7d2b | 2016-08-19 18:11:36 +0000 | [diff] [blame] | 138 | |
| 139 | RRU: |
| 140 | type: tosca.nodes.Service |
| 141 | properties: |
| 142 | view_url: /mcord/?service=vBBU |
| 143 | icon_url: /static/mCordServices/service_rru.png |
| 144 | kind: RAN |
| 145 | |
| 146 | eSON: |
| 147 | type: tosca.nodes.Service |
| 148 | properties: |
| 149 | icon_url: /static/mCordServices/service_server.png |
| 150 | view_url: http://www.google.com |
| 151 | kind: RAN |
| 152 | |
| 153 | # EPC |
| 154 | vMME: |
| 155 | type: tosca.nodes.Service |
| 156 | properties: |
| 157 | icon_url: /static/mCordServices/service_server.png |
| 158 | view_url: /mcord/?service=vMME |
| 159 | kind: vEPC |
| 160 | |
| 161 | vSGW: |
| 162 | type: tosca.nodes.Service |
| 163 | properties: |
| 164 | view_url: /mcord/?service=vSGW |
| 165 | icon_url: /static/mCordServices/service_server.png |
| 166 | kind: vEPC |
| 167 | |
| 168 | |
| 169 | # EDGE |
| 170 | Cache: |
| 171 | type: tosca.nodes.Service |
| 172 | properties: |
| 173 | view_url: /mcord/?service=Cache |
| 174 | icon_url: /static/mCordServices/service_cache.png |
| 175 | kind: EDGE |
| 176 | |
| 177 | Firewall: |
| 178 | type: tosca.nodes.Service |
| 179 | properties: |
| 180 | view_url: /mcord/?service=Firewall |
| 181 | icon_url: /static/mCordServices/service_firewall.png |
| 182 | kind: EDGE |
| 183 | |
| 184 | Video Optimization: |
| 185 | type: tosca.nodes.Service |
| 186 | properties: |
| 187 | view_url: /mcord/?service=Video%20Optimization |
| 188 | icon_url: /static/mCordServices/service_video.png |
| 189 | kind: EDGE |
| 190 | |
| 191 | RRU: |
| 192 | type: tosca.nodes.Service |
| 193 | properties: |
| 194 | view_url: /mcord/?service=vBBU |
| 195 | icon_url: /static/mCordServices/service_rru.png |
| 196 | kind: RAN |
| 197 | eSON: |
| 198 | type: tosca.nodes.Service |
| 199 | properties: |
| 200 | icon_url: /static/mCordServices/service_server.png |
| 201 | view_url: http://www.google.com |
| 202 | kind: RAN |
| 203 | |
| 204 | # EPC |
| 205 | vMME: |
| 206 | type: tosca.nodes.Service |
| 207 | properties: |
| 208 | icon_url: /static/mCordServices/service_server.png |
| 209 | view_url: /mcord/?service=vMME |
| 210 | kind: vEPC |
| 211 | |
| 212 | vSGW: |
| 213 | type: tosca.nodes.Service |
| 214 | properties: |
| 215 | view_url: /mcord/?service=vSGW |
| 216 | icon_url: /static/mCordServices/service_server.png |
| 217 | kind: vEPC |
| 218 | |
| 219 | vPGWC: |
| 220 | type: tosca.nodes.Service |
| 221 | properties: |
| 222 | view_url: /mcord/?service=vPGWC |
| 223 | icon_url: /static/mCordServices/service_server.png |
| 224 | kind: vEPC |
| 225 | |
| 226 | # EDGE |
| 227 | Cache: |
| 228 | type: tosca.nodes.Service |
| 229 | properties: |
| 230 | view_url: /mcord/?service=Cache |
| 231 | icon_url: /static/mCordServices/service_cache.png |
| 232 | kind: EDGE |
| 233 | |
| 234 | Firewall: |
| 235 | type: tosca.nodes.Service |
| 236 | properties: |
| 237 | view_url: /mcord/?service=Firewall |
| 238 | icon_url: /static/mCordServices/service_firewall.png |
| 239 | kind: EDGE |
| 240 | |
| 241 | Video Optimization: |
| 242 | type: tosca.nodes.Service |
| 243 | properties: |
| 244 | view_url: /mcord/?service=Video%20Optimization |
| 245 | icon_url: /static/mCordServices/service_video.png |
| 246 | kind: EDGE |
| 247 | |