Pingping Lin | b7a7d2b | 2016-08-19 18:11:36 +0000 | [diff] [blame] | 1 | tosca_definitions_version: tosca_simple_yaml_1_0 |
| 2 | |
| 3 | imports: |
| 4 | - custom_types/xos.yaml |
| 5 | |
Pingping Lin | 4fdbea0 | 2017-01-25 19:44:28 -0800 | [diff] [blame] | 6 | description: openstack extensions to deployment, generated by platform-install |
Pingping Lin | b7a7d2b | 2016-08-19 18:11:36 +0000 | [diff] [blame] | 7 | |
| 8 | topology_template: |
Pingping Lin | 4fdbea0 | 2017-01-25 19:44:28 -0800 | [diff] [blame] | 9 | node_templates: |
Pingping Lin | b7a7d2b | 2016-08-19 18:11:36 +0000 | [diff] [blame] | 10 | |
Pingping Lin | 4fdbea0 | 2017-01-25 19:44:28 -0800 | [diff] [blame] | 11 | # Images and flavors |
| 12 | trusty-server-multi-nic: |
| 13 | type: tosca.nodes.Image |
| 14 | properties: |
| 15 | path: /opt/xos/images/trusty-server-multi-nic.qcow2 |
| 16 | disk_format: QCOW2 |
| 17 | container_format: BARE |
Pingping Lin | da03d27 | 2017-05-01 15:46:30 -0700 | [diff] [blame] | 18 | |
| 19 | bbu-snapshot-Feb20: |
Pingping Lin | 4fdbea0 | 2017-01-25 19:44:28 -0800 | [diff] [blame] | 20 | type: tosca.nodes.Image |
| 21 | properties: |
Pingping Lin | da03d27 | 2017-05-01 15:46:30 -0700 | [diff] [blame] | 22 | path: /opt/xos/images/bbu-snapshot-Feb20.ami |
| 23 | disk_format: ami |
| 24 | container_format: ami |
| 25 | bbu_kernel: |
Pingping Lin | 4fdbea0 | 2017-01-25 19:44:28 -0800 | [diff] [blame] | 26 | type: tosca.nodes.Image |
| 27 | properties: |
Pingping Lin | da03d27 | 2017-05-01 15:46:30 -0700 | [diff] [blame] | 28 | path: /opt/xos/images/bbu_kernel.aki |
| 29 | disk_format: aki |
| 30 | container_format: aki |
| 31 | |
| 32 | open-mme-snapshot-Feb20: |
Pingping Lin | 4fdbea0 | 2017-01-25 19:44:28 -0800 | [diff] [blame] | 33 | type: tosca.nodes.Image |
| 34 | properties: |
Pingping Lin | da03d27 | 2017-05-01 15:46:30 -0700 | [diff] [blame] | 35 | path: /opt/xos/images/open-mme-snapshot-Feb20.qcow2 |
Pingping Lin | 4fdbea0 | 2017-01-25 19:44:28 -0800 | [diff] [blame] | 36 | disk_format: QCOW2 |
| 37 | container_format: BARE |
Pingping Lin | da03d27 | 2017-05-01 15:46:30 -0700 | [diff] [blame] | 38 | open-sgw-snapshot-Feb20: |
Pingping Lin | 4fdbea0 | 2017-01-25 19:44:28 -0800 | [diff] [blame] | 39 | type: tosca.nodes.Image |
| 40 | properties: |
Pingping Lin | da03d27 | 2017-05-01 15:46:30 -0700 | [diff] [blame] | 41 | path: /opt/xos/images/open-sgw-snapshot-Feb20.qcow2 |
Pingping Lin | 4fdbea0 | 2017-01-25 19:44:28 -0800 | [diff] [blame] | 42 | disk_format: QCOW2 |
| 43 | container_format: BARE |
Pingping Lin | da03d27 | 2017-05-01 15:46:30 -0700 | [diff] [blame] | 44 | open-pgw-snapshot-Feb20: |
Pingping Lin | 4fdbea0 | 2017-01-25 19:44:28 -0800 | [diff] [blame] | 45 | type: tosca.nodes.Image |
| 46 | properties: |
Pingping Lin | da03d27 | 2017-05-01 15:46:30 -0700 | [diff] [blame] | 47 | path: /opt/xos/images/open-pgw-snapshot-Feb20.qcow2 |
Pingping Lin | 4fdbea0 | 2017-01-25 19:44:28 -0800 | [diff] [blame] | 48 | disk_format: QCOW2 |
| 49 | container_format: BARE |
Pingping Lin | da03d27 | 2017-05-01 15:46:30 -0700 | [diff] [blame] | 50 | |
| 51 | licenseserver-snapshot-Feb20: |
Pingping Lin | 4fdbea0 | 2017-01-25 19:44:28 -0800 | [diff] [blame] | 52 | type: tosca.nodes.Image |
| 53 | properties: |
Pingping Lin | da03d27 | 2017-05-01 15:46:30 -0700 | [diff] [blame] | 54 | path: /opt/xos/images/licenseserver-snapshot-Feb20.qcow2 |
Pingping Lin | 4fdbea0 | 2017-01-25 19:44:28 -0800 | [diff] [blame] | 55 | disk_format: QCOW2 |
| 56 | container_format: BARE |
Pingping Lin | da03d27 | 2017-05-01 15:46:30 -0700 | [diff] [blame] | 57 | hss-snapshot-Feb20: |
Pingping Lin | 4fdbea0 | 2017-01-25 19:44:28 -0800 | [diff] [blame] | 58 | type: tosca.nodes.Image |
| 59 | properties: |
Pingping Lin | da03d27 | 2017-05-01 15:46:30 -0700 | [diff] [blame] | 60 | path: /opt/xos/images/hss-snapshot-Feb20.qcow2 |
Pingping Lin | 4fdbea0 | 2017-01-25 19:44:28 -0800 | [diff] [blame] | 61 | disk_format: QCOW2 |
| 62 | container_format: BARE |
Pingping Lin | da03d27 | 2017-05-01 15:46:30 -0700 | [diff] [blame] | 63 | |
| 64 | mme1-snapshot-Feb20: |
Pingping Lin | 4fdbea0 | 2017-01-25 19:44:28 -0800 | [diff] [blame] | 65 | type: tosca.nodes.Image |
| 66 | properties: |
Pingping Lin | da03d27 | 2017-05-01 15:46:30 -0700 | [diff] [blame] | 67 | path: /opt/xos/images/mme1-snapshot-Feb20.qcow2 |
Pingping Lin | 4fdbea0 | 2017-01-25 19:44:28 -0800 | [diff] [blame] | 68 | disk_format: QCOW2 |
| 69 | container_format: BARE |
Pingping Lin | da03d27 | 2017-05-01 15:46:30 -0700 | [diff] [blame] | 70 | sgwc1-snapshot-Feb20: |
| 71 | type: tosca.nodes.Image |
| 72 | properties: |
| 73 | path: /opt/xos/images/sgwc1-snapshot-Feb20.qcow2 |
| 74 | disk_format: QCOW2 |
| 75 | container_format: BARE |
| 76 | pgwc1-snapshot-Feb20: |
| 77 | type: tosca.nodes.Image |
| 78 | properties: |
| 79 | path: /opt/xos/images/pgwc1-snapshot-Feb20.qcow2 |
| 80 | disk_format: QCOW2 |
| 81 | container_format: BARE |
| 82 | sgwu1-snapshot-Feb20: |
| 83 | type: tosca.nodes.Image |
| 84 | properties: |
| 85 | path: /opt/xos/images/sgwu1-snapshot-Feb20.qcow2 |
| 86 | disk_format: QCOW2 |
| 87 | container_format: BARE |
| 88 | pgwu1-snapshot-Feb20: |
| 89 | type: tosca.nodes.Image |
| 90 | properties: |
| 91 | path: /opt/xos/images/pgwu1-snapshot-Feb20.qcow2 |
| 92 | disk_format: QCOW2 |
| 93 | container_format: BARE |
| 94 | |
| 95 | mme2-snapshot-Feb20: |
| 96 | type: tosca.nodes.Image |
| 97 | properties: |
| 98 | path: /opt/xos/images/mme2-snapshot-Feb20.qcow2 |
| 99 | disk_format: QCOW2 |
| 100 | container_format: BARE |
| 101 | sgwc2-snapshot-Feb20: |
| 102 | type: tosca.nodes.Image |
| 103 | properties: |
| 104 | path: /opt/xos/images/sgwc2-snapshot-Feb20.qcow2 |
| 105 | disk_format: QCOW2 |
| 106 | container_format: BARE |
| 107 | pgwc2-snapshot-Feb20: |
| 108 | type: tosca.nodes.Image |
| 109 | properties: |
| 110 | path: /opt/xos/images/pgwc2-snapshot-Feb20.qcow2 |
| 111 | disk_format: QCOW2 |
| 112 | container_format: BARE |
| 113 | sgwu2-snapshot-Feb20: |
| 114 | type: tosca.nodes.Image |
| 115 | properties: |
| 116 | path: /opt/xos/images/sgwu2-snapshot-Feb20.qcow2 |
| 117 | disk_format: QCOW2 |
| 118 | container_format: BARE |
| 119 | pgwu2-snapshot-Feb20: |
| 120 | type: tosca.nodes.Image |
| 121 | properties: |
| 122 | path: /opt/xos/images/pgwu2-snapshot-Feb20.qcow2 |
| 123 | disk_format: QCOW2 |
| 124 | container_format: BARE |
| 125 | |
| 126 | cookie-snapshot-Feb20: |
| 127 | type: tosca.nodes.Image |
| 128 | properties: |
| 129 | path: /opt/xos/images/cookie-snapshot-Feb20.qcow2 |
| 130 | disk_format: QCOW2 |
| 131 | container_format: BARE |
| 132 | NAT-snapshot-Feb20: |
| 133 | type: tosca.nodes.Image |
| 134 | properties: |
| 135 | path: /opt/xos/images/NAT-snapshot-Feb20.qcow2 |
| 136 | disk_format: QCOW2 |
| 137 | container_format: BARE |
| 138 | xpose-snapshot-Feb20: |
| 139 | type: tosca.nodes.Image |
| 140 | properties: |
| 141 | path: /opt/xos/images/xpose-snapshot-Feb20.qcow2 |
| 142 | disk_format: QCOW2 |
| 143 | container_format: BARE |
| 144 | |
| 145 | # licenseserver: |
| 146 | # type: tosca.nodes.Image |
| 147 | # properties: |
| 148 | # path: /opt/xos/images/licenseserver.qcow2 |
| 149 | # disk_format: QCOW2 |
| 150 | # container_format: BARE |
| 151 | # hss: |
| 152 | # type: tosca.nodes.Image |
| 153 | # properties: |
| 154 | # path: /opt/xos/images/hss.qcow2 |
| 155 | # disk_format: QCOW2 |
| 156 | # container_format: BARE |
| 157 | # mme: |
| 158 | # type: tosca.nodes.Image |
| 159 | # properties: |
| 160 | # path: /opt/xos/images/mme.qcow2 |
| 161 | # disk_format: QCOW2 |
| 162 | # container_format: BARE |
| 163 | # pgwc: |
| 164 | # type: tosca.nodes.Image |
| 165 | # properties: |
| 166 | # path: /opt/xos/images/pgwc.qcow2 |
| 167 | # disk_format: QCOW2 |
| 168 | # container_format: BARE |
| 169 | # pgwu: |
| 170 | # type: tosca.nodes.Image |
| 171 | # properties: |
| 172 | # path: /opt/xos/images/pgwu.qcow2 |
| 173 | # disk_format: QCOW2 |
| 174 | # container_format: BARE |
| 175 | # sgwc: |
| 176 | # type: tosca.nodes.Image |
| 177 | # properties: |
| 178 | # path: /opt/xos/images/sgwc.qcow2 |
| 179 | # disk_format: QCOW2 |
| 180 | # container_format: BARE |
| 181 | # sgwu: |
| 182 | # type: tosca.nodes.Image |
| 183 | # properties: |
| 184 | # path: /opt/xos/images/sgwu.qcow2 |
| 185 | # disk_format: QCOW2 |
| 186 | # container_format: BARE |
| 187 | # bbu: |
| 188 | # type: tosca.nodes.Image |
| 189 | # properties: |
| 190 | # path: /opt/xos/images/bbu.qcow2 |
| 191 | # disk_format: QCOW2 |
| 192 | # container_format: BARE |
| 193 | # bbu_s: |
| 194 | # type: tosca.nodes.Image |
| 195 | # properties: |
| 196 | # path: /opt/xos/images/bbus.qcow2 |
| 197 | # disk_format: QCOW2 |
| 198 | # container_format: BARE |
| 199 | # cookies: |
| 200 | # type: tosca.nodes.Image |
| 201 | # properties: |
| 202 | # path: /opt/xos/images/cookies.qcow2 |
| 203 | # disk_format: QCOW2 |
| 204 | # container_format: BARE |
| 205 | |
| 206 | |
Pingping Lin | 4fdbea0 | 2017-01-25 19:44:28 -0800 | [diff] [blame] | 207 | m1.small: |
| 208 | type: tosca.nodes.Flavor |
| 209 | |
| 210 | m1.medium: |
| 211 | type: tosca.nodes.Flavor |
| 212 | |
| 213 | m1.large: |
| 214 | type: tosca.nodes.Flavor |
| 215 | |
| 216 | m1.xlarge: |
| 217 | type: tosca.nodes.Flavor |
| 218 | |
| 219 | |
| 220 | # Deployment - adds images/flavors to site defined in deployment.yaml |
Pingping Lin | b7a7d2b | 2016-08-19 18:11:36 +0000 | [diff] [blame] | 221 | MyDeployment: |
| 222 | type: tosca.nodes.Deployment |
Pingping Lin | b7a7d2b | 2016-08-19 18:11:36 +0000 | [diff] [blame] | 223 | requirements: |
Pingping Lin | 4fdbea0 | 2017-01-25 19:44:28 -0800 | [diff] [blame] | 224 | - m1.small: |
| 225 | node: m1.small |
| 226 | relationship: tosca.relationships.SupportsFlavor |
| 227 | - m1.medium: |
| 228 | node: m1.medium |
| 229 | relationship: tosca.relationships.SupportsFlavor |
| 230 | - m1.large: |
| 231 | node: m1.large |
| 232 | relationship: tosca.relationships.SupportsFlavor |
| 233 | - m1.xlarge: |
| 234 | node: m1.xlarge |
| 235 | relationship: tosca.relationships.SupportsFlavor |
| 236 | |
| 237 | # OpenStack Controller |
| 238 | mysite_MyDeployment_openstack: |
| 239 | type: tosca.nodes.Controller |
| 240 | requirements: |
| 241 | - deployment: |
| 242 | node: MyDeployment |
| 243 | relationship: tosca.relationships.ControllerDeployment |
| 244 | properties: |
| 245 | backend_type: OpenStack |
| 246 | version: Kilo |
| 247 | auth_url: { get_script_env: [ SELF, adminrc, OS_AUTH_URL, LOCAL_FILE] } |
| 248 | admin_user: { get_script_env: [ SELF, adminrc, OS_USERNAME, LOCAL_FILE] } |
| 249 | admin_password: { get_script_env: [ SELF, adminrc, OS_PASSWORD, LOCAL_FILE] } |
| 250 | admin_tenant: { get_script_env: [ SELF, adminrc, OS_TENANT_NAME, LOCAL_FILE] } |
| 251 | domain: Default |
| 252 | artifacts: |
| 253 | adminrc: /root/setup/admin-openrc.sh |
| 254 | |
| 255 | # Site - adds openstack controller to site defined in deployment.yaml |
| 256 | mysite: |
| 257 | type: tosca.nodes.Site |
| 258 | properties: |
| 259 | display_name: MySite |
| 260 | site_url: http://mysite.opencloud.us/ |
| 261 | hosts_nodes: true |
| 262 | requirements: |
| 263 | - deployment: |
| 264 | node: MyDeployment |
| 265 | relationship: tosca.relationships.MemberOfDeployment |
| 266 | - controller: |
| 267 | node: mysite_MyDeployment_openstack |
| 268 | relationship: tosca.relationships.UsesController |
Pingping Lin | b7a7d2b | 2016-08-19 18:11:36 +0000 | [diff] [blame] | 269 | |