Scott Baker | 5042166 | 2016-06-27 22:09:48 -0700 | [diff] [blame] | 1 | tosca_definitions_version: tosca_simple_yaml_1_0 |
| 2 | |
| 3 | description: Setup CORD-related services -- vOLT, vCPE, vBNG. |
| 4 | |
| 5 | imports: |
| 6 | - custom_types/xos.yaml |
Srikanth Vavilapalli | 7da3c5e | 2016-10-13 17:50:21 +0000 | [diff] [blame] | 7 | - custom_types/monitoring_tosca_types.yaml |
Scott Baker | 5042166 | 2016-06-27 22:09:48 -0700 | [diff] [blame] | 8 | |
| 9 | topology_template: |
| 10 | node_templates: |
| 11 | service_ceilometer: |
| 12 | type: tosca.nodes.CeilometerService |
| 13 | requirements: |
| 14 | properties: |
Scott Baker | d1545d3 | 2016-06-29 11:27:33 -0700 | [diff] [blame] | 15 | view_url: /admin/monitoring/ceilometerservice/$id$/ |
Scott Baker | 5042166 | 2016-06-27 22:09:48 -0700 | [diff] [blame] | 16 | kind: ceilometer |
| 17 | ceilometer_pub_sub_url: http://10.11.10.1:4455/ |
| 18 | public_key: { get_artifact: [ SELF, pubkey, LOCAL_FILE] } |
Scott Baker | d1545d3 | 2016-06-29 11:27:33 -0700 | [diff] [blame] | 19 | private_key_fn: /opt/xos/services/monitoring/keys/monitoringservice_rsa |
Scott Baker | 5042166 | 2016-06-27 22:09:48 -0700 | [diff] [blame] | 20 | artifacts: |
Scott Baker | d1545d3 | 2016-06-29 11:27:33 -0700 | [diff] [blame] | 21 | pubkey: /opt/xos/services/monitoring/keys/monitoringservice_rsa.pub |
Scott Baker | 5042166 | 2016-06-27 22:09:48 -0700 | [diff] [blame] | 22 | |
| 23 | # service_sflow: |
| 24 | # type: tosca.nodes.SFlowService |
| 25 | # requirements: |
| 26 | # properties: |
Scott Baker | d1545d3 | 2016-06-29 11:27:33 -0700 | [diff] [blame] | 27 | # view_url: /admin/monitoring/sflowservice/$id$/ |
Scott Baker | 5042166 | 2016-06-27 22:09:48 -0700 | [diff] [blame] | 28 | # kind: sflow |
| 29 | # sflow_port: 6343 |
| 30 | # sflow_api_port: 33333 |
| 31 | |
| 32 | Private: |
| 33 | type: tosca.nodes.NetworkTemplate |
| 34 | |
| 35 | management: |
| 36 | type: tosca.nodes.network.Network.XOS |
| 37 | properties: |
| 38 | no-create: true |
| 39 | no-delete: true |
| 40 | no-update: true |
| 41 | |
| 42 | # ceilometer_network: |
| 43 | # type: tosca.nodes.network.Network.XOS |
| 44 | # properties: |
| 45 | # ip_version: 4 |
| 46 | # labels: ceilometer_client_access |
| 47 | # requirements: |
| 48 | # - network_template: |
| 49 | # node: Private |
| 50 | # relationship: tosca.relationships.UsesNetworkTemplate |
| 51 | # - owner: |
| 52 | # node: mysite_ceilometer |
| 53 | # relationship: tosca.relationships.MemberOfSlice |
| 54 | # - connection: |
| 55 | # node: mysite_ceilometer |
| 56 | # relationship: tosca.relationships.ConnectsToSlice |
| 57 | |
| 58 | mysite: |
| 59 | type: tosca.nodes.Site |
| 60 | |
| 61 | trusty-server-multi-nic: |
| 62 | type: tosca.nodes.Image |
| 63 | |
| 64 | ceilometer-trusty-server-multi-nic: |
| 65 | type: tosca.nodes.Image |
| 66 | |
Srikanth Vavilapalli | cccb0a3 | 2016-07-08 04:19:04 +0000 | [diff] [blame] | 67 | ceilometer-service-trusty-server-multi-nic: |
| 68 | type: tosca.nodes.Image |
| 69 | |
Scott Baker | 5042166 | 2016-06-27 22:09:48 -0700 | [diff] [blame] | 70 | m1.small: |
| 71 | type: tosca.nodes.Flavor |
| 72 | |
| 73 | mysite_ceilometer: |
| 74 | description: Ceilometer Proxy Slice |
| 75 | type: tosca.nodes.Slice |
| 76 | requirements: |
| 77 | - ceilometer_service: |
| 78 | node: service_ceilometer |
| 79 | relationship: tosca.relationships.MemberOfService |
| 80 | - site: |
| 81 | node: mysite |
| 82 | relationship: tosca.relationships.MemberOfSite |
| 83 | - default_image: |
| 84 | node: ceilometer-trusty-server-multi-nic |
| 85 | relationship: tosca.relationships.DefaultImage |
| 86 | - management: |
| 87 | node: management |
| 88 | relationship: tosca.relationships.ConnectsToNetwork |
| 89 | - m1.small: |
| 90 | node: m1.small |
| 91 | relationship: tosca.relationships.DefaultFlavor |
| 92 | |
Srikanth Vavilapalli | cccb0a3 | 2016-07-08 04:19:04 +0000 | [diff] [blame] | 93 | # Virtual machines |
| 94 | ceilometer_service_instance: |
| 95 | type: tosca.nodes.Compute |
| 96 | capabilities: |
| 97 | # Host container properties |
| 98 | host: |
| 99 | properties: |
Srikanth Vavilapalli | 924844d | 2017-01-20 19:19:43 +0000 | [diff] [blame] | 100 | num_cpus: 2 |
| 101 | disk_size: 40 GB |
| 102 | mem_size: 4 GB |
Srikanth Vavilapalli | cccb0a3 | 2016-07-08 04:19:04 +0000 | [diff] [blame] | 103 | requirements: |
| 104 | - slice: |
| 105 | node: mysite_ceilometer |
| 106 | relationship: tosca.relationships.MemberOfSlice |
| 107 | - image: |
| 108 | node: ceilometer-service-trusty-server-multi-nic |
| 109 | relationship: tosca.relationships.UsesImage |
| 110 | |
Scott Baker | 5042166 | 2016-06-27 22:09:48 -0700 | [diff] [blame] | 111 | # mysite_sflow: |
| 112 | # description: Slice for sFlow service |
| 113 | # type: tosca.nodes.Slice |
| 114 | # requirements: |
| 115 | # - sflow_service: |
| 116 | # node: service_sflow |
| 117 | # relationship: tosca.relationships.MemberOfService |
| 118 | # - site: |
| 119 | # node: mysite |
| 120 | # relationship: tosca.relationships.MemberOfSite |
| 121 | |
Srikanth Vavilapalli | cccb0a3 | 2016-07-08 04:19:04 +0000 | [diff] [blame] | 122 | # MOVING this section to monitoringtenant.yaml |
| 123 | # my_ceilometer_tenant: |
| 124 | # description: Ceilometer Service default Tenant |
| 125 | # type: tosca.nodes.CeilometerTenant |
| 126 | # requirements: |
| 127 | # - provider_service: |
| 128 | # node: service_ceilometer |
| 129 | # relationship: tosca.relationships.MemberOfService |
| 130 | # - dependency: |
| 131 | # node: ceilometer_service_instance |
| 132 | # relationship: tosca.relationships.DependsOn |
Scott Baker | 5042166 | 2016-06-27 22:09:48 -0700 | [diff] [blame] | 133 | |
| 134 | # Virtual machines |
| 135 | # sflow_service_instance: |
| 136 | # type: tosca.nodes.Compute |
| 137 | # capabilities: |
| 138 | # # Host container properties |
| 139 | # host: |
| 140 | # properties: |
| 141 | # num_cpus: 1 |
| 142 | # disk_size: 10 GB |
| 143 | # mem_size: 4 MB |
| 144 | # # Guest Operating System properties |
| 145 | # os: |
| 146 | # properties: |
| 147 | # # host Operating System image properties |
| 148 | # architecture: x86_64 |
| 149 | # type: linux |
| 150 | # distribution: Ubuntu |
| 151 | # version: 14.10 |
| 152 | # requirements: |
| 153 | # - slice: |
| 154 | # node: mysite_sflow |
| 155 | # relationship: tosca.relationships.MemberOfSlice |
| 156 | |
Srikanth Vavilapalli | cccb0a3 | 2016-07-08 04:19:04 +0000 | [diff] [blame] | 157 | # MOVING the below sections to monitoringtenant.yaml |
| 158 | # Ceilometer: |
| 159 | # type: tosca.nodes.DashboardView |
| 160 | # properties: |
| 161 | # url: template:xosCeilometerDashboard |
| 162 | # Tenant: |
| 163 | # type: tosca.nodes.DashboardView |
| 164 | # properties: |
| 165 | # no-create: true |
| 166 | # no-update: true |
| 167 | # no-delete: true |
| 168 | # |
| 169 | # padmin@vicci.org: |
| 170 | # type: tosca.nodes.User |
| 171 | # properties: |
| 172 | # firstname: XOS |
| 173 | # lastname: admin |
| 174 | # is_admin: true |
| 175 | # requirements: |
| 176 | # - tenant_dashboard: |
| 177 | # node: Tenant |
| 178 | # relationship: tosca.relationships.UsesDashboard |
| 179 | # - ceilometer_dashboard: |
| 180 | # node: Ceilometer |
| 181 | # relationship: tosca.relationships.UsesDashboard |