Srikanth Vavilapalli | 1c68c47 | 2016-03-02 18:22:04 +0000 | [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 |
| 7 | |
| 8 | node_types: |
| 9 | tosca.nodes.SFlowService: |
| 10 | derived_from: tosca.nodes.Root |
| 11 | description: > |
| 12 | XOS SFlow Collection Service |
| 13 | capabilities: |
| 14 | scalable: |
| 15 | type: tosca.capabilities.Scalable |
| 16 | service: |
| 17 | type: tosca.capabilities.xos.Service |
| 18 | properties: |
| 19 | kind: |
| 20 | type: string |
| 21 | default: generic |
| 22 | description: Type of service. |
| 23 | view_url: |
| 24 | type: string |
| 25 | required: false |
| 26 | description: URL to follow when icon is clicked in the Service Directory. |
| 27 | icon_url: |
| 28 | type: string |
| 29 | required: false |
| 30 | description: ICON to display in the Service Directory. |
| 31 | enabled: |
| 32 | type: boolean |
| 33 | default: true |
| 34 | published: |
| 35 | type: boolean |
| 36 | default: true |
| 37 | description: If True then display this Service in the Service Directory. |
| 38 | public_key: |
| 39 | type: string |
| 40 | required: false |
| 41 | description: Public key to install into Instances to allows Services to SSH into them. |
| 42 | private_key_fn: |
| 43 | type: string |
| 44 | required: false |
| 45 | description: Location of private key file |
| 46 | versionNumber: |
| 47 | type: string |
| 48 | required: false |
| 49 | description: Version number of Service. |
| 50 | sflow_port: |
| 51 | type: integer |
| 52 | required: false |
| 53 | default: 6343 |
| 54 | description: sFlow listening port |
| 55 | sflow_api_port: |
| 56 | type: integer |
| 57 | required: false |
| 58 | default: 33333 |
| 59 | description: sFlow publish subscribe api listening port |
| 60 | |
| 61 | tosca.nodes.CeilometerService: |
| 62 | derived_from: tosca.nodes.Root |
| 63 | description: > |
| 64 | XOS Ceilometer Service |
| 65 | capabilities: |
| 66 | scalable: |
| 67 | type: tosca.capabilities.Scalable |
| 68 | service: |
| 69 | type: tosca.capabilities.xos.Service |
| 70 | properties: |
| 71 | kind: |
| 72 | type: string |
| 73 | default: generic |
| 74 | description: Type of service. |
| 75 | view_url: |
| 76 | type: string |
| 77 | required: false |
| 78 | description: URL to follow when icon is clicked in the Service Directory. |
| 79 | icon_url: |
| 80 | type: string |
| 81 | required: false |
| 82 | description: ICON to display in the Service Directory. |
| 83 | enabled: |
| 84 | type: boolean |
| 85 | default: true |
| 86 | published: |
| 87 | type: boolean |
| 88 | default: true |
| 89 | description: If True then display this Service in the Service Directory. |
| 90 | public_key: |
| 91 | type: string |
| 92 | required: false |
| 93 | description: Public key to install into Instances to allows Services to SSH into them. |
| 94 | private_key_fn: |
| 95 | type: string |
| 96 | required: false |
| 97 | description: Location of private key file |
| 98 | versionNumber: |
| 99 | type: string |
| 100 | required: false |
| 101 | description: Version number of Service. |
| 102 | ceilometer_pub_sub_url: |
| 103 | type: string |
| 104 | required: false |
| 105 | description: REST URL of ceilometer PUB/SUB component |
| 106 | |
| 107 | tosca.nodes.CeilometerTenant: |
| 108 | derived_from: tosca.nodes.Root |
| 109 | description: > |
| 110 | CORD: A Tenant of the Ceilometer Service. |
| 111 | properties: |
| 112 | kind: |
| 113 | type: string |
| 114 | default: generic |
| 115 | description: Kind of tenant |
| 116 | |
| 117 | topology_template: |
| 118 | node_templates: |
| 119 | service_ceilometer: |
| 120 | type: tosca.nodes.CeilometerService |
| 121 | requirements: |
| 122 | properties: |
| 123 | view_url: /admin/ceilometer/ceilometerservice/$id$/ |
| 124 | kind: ceilometer |
| 125 | ceilometer_pub_sub_url: http://10.11.10.1:4455/ |
| 126 | public_key: { get_artifact: [ SELF, pubkey, LOCAL_FILE] } |
| 127 | artifacts: |
| 128 | pubkey: /opt/xos/synchronizers/monitoring_channel/monitoring_channel_public_key |
| 129 | |
| 130 | # service_sflow: |
| 131 | # type: tosca.nodes.SFlowService |
| 132 | # requirements: |
| 133 | # properties: |
| 134 | # view_url: /admin/ceilometer/sflowservice/$id$/ |
| 135 | # kind: sflow |
| 136 | # sflow_port: 6343 |
| 137 | # sflow_api_port: 33333 |
| 138 | |
| 139 | Private: |
| 140 | type: tosca.nodes.NetworkTemplate |
| 141 | |
| 142 | management: |
| 143 | type: tosca.nodes.network.Network.XOS |
| 144 | properties: |
| 145 | no-create: true |
| 146 | no-delete: true |
| 147 | no-update: true |
| 148 | |
| 149 | # ceilometer_network: |
| 150 | # type: tosca.nodes.network.Network.XOS |
| 151 | # properties: |
| 152 | # ip_version: 4 |
| 153 | # labels: ceilometer_client_access |
| 154 | # requirements: |
| 155 | # - network_template: |
| 156 | # node: Private |
| 157 | # relationship: tosca.relationships.UsesNetworkTemplate |
| 158 | # - owner: |
| 159 | # node: mysite_ceilometer |
| 160 | # relationship: tosca.relationships.MemberOfSlice |
| 161 | # - connection: |
| 162 | # node: mysite_ceilometer |
| 163 | # relationship: tosca.relationships.ConnectsToSlice |
| 164 | |
| 165 | mysite: |
| 166 | type: tosca.nodes.Site |
| 167 | |
| 168 | trusty-server-multi-nic: |
| 169 | type: tosca.nodes.Image |
| 170 | |
| 171 | ceilometer-trusty-server-multi-nic: |
| 172 | type: tosca.nodes.Image |
| 173 | |
| 174 | mysite_ceilometer: |
| 175 | description: Ceilometer Proxy Slice |
| 176 | type: tosca.nodes.Slice |
| 177 | requirements: |
| 178 | - ceilometer_service: |
| 179 | node: service_ceilometer |
| 180 | relationship: tosca.relationships.MemberOfService |
| 181 | - site: |
| 182 | node: mysite |
| 183 | relationship: tosca.relationships.MemberOfSite |
| 184 | - default_image: |
| 185 | node: ceilometer-trusty-server-multi-nic |
| 186 | relationship: tosca.relationships.DefaultImage |
| 187 | - management: |
| 188 | node: management |
| 189 | relationship: tosca.relationships.ConnectsToNetwork |
| 190 | properties: |
| 191 | default_flavor: m1.small |
| 192 | |
| 193 | # mysite_sflow: |
| 194 | # description: Slice for sFlow service |
| 195 | # type: tosca.nodes.Slice |
| 196 | # requirements: |
| 197 | # - sflow_service: |
| 198 | # node: service_sflow |
| 199 | # relationship: tosca.relationships.MemberOfService |
| 200 | # - site: |
| 201 | # node: mysite |
| 202 | # relationship: tosca.relationships.MemberOfSite |
| 203 | |
| 204 | my_ceilometer_tenant: |
| 205 | description: Ceilometer Service default Tenant |
| 206 | type: tosca.nodes.CeilometerTenant |
| 207 | requirements: |
| 208 | - provider_service: |
| 209 | node: service_ceilometer |
| 210 | relationship: tosca.relationships.MemberOfService |
| 211 | |
| 212 | # Virtual machines |
| 213 | # sflow_service_instance: |
| 214 | # type: tosca.nodes.Compute |
| 215 | # capabilities: |
| 216 | # # Host container properties |
| 217 | # host: |
| 218 | # properties: |
| 219 | # num_cpus: 1 |
| 220 | # disk_size: 10 GB |
| 221 | # mem_size: 4 MB |
| 222 | # # Guest Operating System properties |
| 223 | # os: |
| 224 | # properties: |
| 225 | # # host Operating System image properties |
| 226 | # architecture: x86_64 |
| 227 | # type: linux |
| 228 | # distribution: Ubuntu |
| 229 | # version: 14.10 |
| 230 | # requirements: |
| 231 | # - slice: |
| 232 | # node: mysite_sflow |
| 233 | # relationship: tosca.relationships.MemberOfSlice |
| 234 | |
| 235 | Ceilometer: |
| 236 | type: tosca.nodes.DashboardView |
| 237 | properties: |
| 238 | url: template:xosCeilometerDashboard |
| 239 | Tenant: |
| 240 | type: tosca.nodes.DashboardView |
| 241 | properties: |
| 242 | no-create: true |
| 243 | no-update: true |
| 244 | no-delete: true |
| 245 | |
| 246 | padmin@vicci.org: |
| 247 | type: tosca.nodes.User |
| 248 | properties: |
| 249 | firstname: XOS |
| 250 | lastname: admin |
| 251 | is_admin: true |
| 252 | requirements: |
| 253 | - tenant_dashboard: |
| 254 | node: Tenant |
| 255 | relationship: tosca.relationships.UsesDashboard |
| 256 | - ceilometer_dashboard: |
| 257 | node: Ceilometer |
| 258 | relationship: tosca.relationships.UsesDashboard |