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 |
| 18 | licenseserver: |
| 19 | type: tosca.nodes.Image |
| 20 | properties: |
| 21 | path: /opt/xos/images/licenseserver.qcow2 |
| 22 | disk_format: QCOW2 |
| 23 | container_format: BARE |
| 24 | hss: |
| 25 | type: tosca.nodes.Image |
| 26 | properties: |
| 27 | path: /opt/xos/images/hss.qcow2 |
| 28 | disk_format: QCOW2 |
| 29 | container_format: BARE |
| 30 | mme: |
| 31 | type: tosca.nodes.Image |
| 32 | properties: |
| 33 | path: /opt/xos/images/mme.qcow2 |
| 34 | disk_format: QCOW2 |
| 35 | container_format: BARE |
| 36 | pgwc: |
| 37 | type: tosca.nodes.Image |
| 38 | properties: |
| 39 | path: /opt/xos/images/pgwc.qcow2 |
| 40 | disk_format: QCOW2 |
| 41 | container_format: BARE |
| 42 | pgwu: |
| 43 | type: tosca.nodes.Image |
| 44 | properties: |
| 45 | path: /opt/xos/images/pgwu.qcow2 |
| 46 | disk_format: QCOW2 |
| 47 | container_format: BARE |
| 48 | sgwc: |
| 49 | type: tosca.nodes.Image |
| 50 | properties: |
| 51 | path: /opt/xos/images/sgwc.qcow2 |
| 52 | disk_format: QCOW2 |
| 53 | container_format: BARE |
| 54 | sgwu: |
| 55 | type: tosca.nodes.Image |
| 56 | properties: |
| 57 | path: /opt/xos/images/sgwu.qcow2 |
| 58 | disk_format: QCOW2 |
| 59 | container_format: BARE |
| 60 | bbu: |
| 61 | type: tosca.nodes.Image |
| 62 | properties: |
| 63 | path: /opt/xos/images/bbu.qcow2 |
| 64 | disk_format: QCOW2 |
| 65 | container_format: BARE |
| 66 | m1.small: |
| 67 | type: tosca.nodes.Flavor |
| 68 | |
| 69 | m1.medium: |
| 70 | type: tosca.nodes.Flavor |
| 71 | |
| 72 | m1.large: |
| 73 | type: tosca.nodes.Flavor |
| 74 | |
| 75 | m1.xlarge: |
| 76 | type: tosca.nodes.Flavor |
| 77 | |
| 78 | |
| 79 | # Deployment - adds images/flavors to site defined in deployment.yaml |
Pingping Lin | b7a7d2b | 2016-08-19 18:11:36 +0000 | [diff] [blame] | 80 | MyDeployment: |
| 81 | type: tosca.nodes.Deployment |
Pingping Lin | b7a7d2b | 2016-08-19 18:11:36 +0000 | [diff] [blame] | 82 | requirements: |
Pingping Lin | 4fdbea0 | 2017-01-25 19:44:28 -0800 | [diff] [blame^] | 83 | - m1.small: |
| 84 | node: m1.small |
| 85 | relationship: tosca.relationships.SupportsFlavor |
| 86 | - m1.medium: |
| 87 | node: m1.medium |
| 88 | relationship: tosca.relationships.SupportsFlavor |
| 89 | - m1.large: |
| 90 | node: m1.large |
| 91 | relationship: tosca.relationships.SupportsFlavor |
| 92 | - m1.xlarge: |
| 93 | node: m1.xlarge |
| 94 | relationship: tosca.relationships.SupportsFlavor |
| 95 | |
| 96 | # OpenStack Controller |
| 97 | mysite_MyDeployment_openstack: |
| 98 | type: tosca.nodes.Controller |
| 99 | requirements: |
| 100 | - deployment: |
| 101 | node: MyDeployment |
| 102 | relationship: tosca.relationships.ControllerDeployment |
| 103 | properties: |
| 104 | backend_type: OpenStack |
| 105 | version: Kilo |
| 106 | auth_url: { get_script_env: [ SELF, adminrc, OS_AUTH_URL, LOCAL_FILE] } |
| 107 | admin_user: { get_script_env: [ SELF, adminrc, OS_USERNAME, LOCAL_FILE] } |
| 108 | admin_password: { get_script_env: [ SELF, adminrc, OS_PASSWORD, LOCAL_FILE] } |
| 109 | admin_tenant: { get_script_env: [ SELF, adminrc, OS_TENANT_NAME, LOCAL_FILE] } |
| 110 | domain: Default |
| 111 | artifacts: |
| 112 | adminrc: /root/setup/admin-openrc.sh |
| 113 | |
| 114 | # Site - adds openstack controller to site defined in deployment.yaml |
| 115 | mysite: |
| 116 | type: tosca.nodes.Site |
| 117 | properties: |
| 118 | display_name: MySite |
| 119 | site_url: http://mysite.opencloud.us/ |
| 120 | hosts_nodes: true |
| 121 | requirements: |
| 122 | - deployment: |
| 123 | node: MyDeployment |
| 124 | relationship: tosca.relationships.MemberOfDeployment |
| 125 | - controller: |
| 126 | node: mysite_MyDeployment_openstack |
| 127 | relationship: tosca.relationships.UsesController |
Pingping Lin | b7a7d2b | 2016-08-19 18:11:36 +0000 | [diff] [blame] | 128 | |