Srikanth Vavilapalli | b2a5019 | 2017-02-03 18:25:59 +0000 | [diff] [blame] | 1 | tosca_definitions_version: tosca_simple_yaml_1_0 |
| 2 | |
| 3 | description: Setup Slice for analytics applications. |
| 4 | |
| 5 | imports: |
| 6 | - custom_types/xos.yaml |
| 7 | - custom_types/monitoring_tosca_types.yaml |
| 8 | |
| 9 | topology_template: |
| 10 | node_templates: |
| 11 | service_ceilometer: |
| 12 | type: tosca.nodes.CeilometerService |
| 13 | properties: |
| 14 | no-create: true |
| 15 | no-update: true |
| 16 | no-delete: true |
| 17 | |
| 18 | service_analytics: |
| 19 | type: tosca.nodes.Service |
| 20 | requirements: |
| 21 | - monitoring_tenant: |
| 22 | node: service_ceilometer |
| 23 | relationship: tosca.relationships.TenantOfService |
| 24 | properties: |
| 25 | kind: analytics |
| 26 | |
| 27 | # private network template, created in fixtures.yml |
| 28 | Private: |
| 29 | type: tosca.nodes.NetworkTemplate |
| 30 | |
| 31 | # site, fully created in deployment.yaml |
| 32 | mysite: |
| 33 | type: tosca.nodes.Site |
| 34 | |
| 35 | trusty-server-multi-nic: |
| 36 | type: tosca.nodes.Image |
| 37 | |
| 38 | m1.small: |
| 39 | type: tosca.nodes.Flavor |
| 40 | |
| 41 | # management network, fully created in management-net.yaml |
| 42 | management: |
| 43 | type: tosca.nodes.network.Network.XOS |
| 44 | properties: |
| 45 | no-create: true |
| 46 | no-delete: true |
| 47 | no-update: true |
| 48 | |
| 49 | # public network, fully created in public-net.yaml |
| 50 | public: |
| 51 | type: tosca.nodes.network.Network.XOS |
| 52 | properties: |
| 53 | no-create: true |
| 54 | no-delete: true |
| 55 | no-update: true |
| 56 | |
| 57 | analytics_app_network: |
| 58 | type: tosca.nodes.network.Network.XOS |
| 59 | properties: |
| 60 | ip_version: 4 |
| 61 | labels: analytics_app_private_network |
| 62 | requirements: |
| 63 | - network_template: |
| 64 | node: Private |
| 65 | relationship: tosca.relationships.UsesNetworkTemplate |
| 66 | - owner: |
| 67 | node: mysite_analytics |
| 68 | relationship: tosca.relationships.MemberOfSlice |
| 69 | - connection: |
| 70 | node: mysite_analytics |
| 71 | relationship: tosca.relationships.ConnectsToSlice |
| 72 | |
| 73 | mysite_analytics: |
| 74 | type: tosca.nodes.Slice |
| 75 | properties: |
| 76 | network: noauto |
| 77 | requirements: |
| 78 | - service: |
| 79 | node: service_analytics |
| 80 | relationship: tosca.relationships.MemberOfService |
| 81 | - site: |
| 82 | node: mysite |
| 83 | relationship: tosca.relationships.MemberOfSite |
| 84 | - management: |
| 85 | node: management |
| 86 | relationship: tosca.relationships.ConnectsToNetwork |
| 87 | - public: |
| 88 | node: public |
| 89 | relationship: tosca.relationships.ConnectsToNetwork |
| 90 | - default_image: |
| 91 | node: trusty-server-multi-nic |
| 92 | relationship: tosca.relationships.DefaultImage |
| 93 | - m1.small: |
| 94 | node: m1.small |
| 95 | relationship: tosca.relationships.DefaultFlavor |
| 96 | |
| 97 | # Virtual machines |
| 98 | auto_scale_virtual_machine: |
| 99 | type: tosca.nodes.Compute |
| 100 | capabilities: |
| 101 | # Host container properties |
| 102 | host: |
| 103 | properties: |
| 104 | num_cpus: 1 |
| 105 | disk_size: 20 GB |
| 106 | mem_size: 2 GB |
| 107 | requirements: |
| 108 | - slice: |
| 109 | node: mysite_analytics |
| 110 | relationship: tosca.relationships.MemberOfSlice |
| 111 | - image: |
| 112 | node: trusty-server-multi-nic |
| 113 | relationship: tosca.relationships.UsesImage |
| 114 | |