Srikanth Vavilapalli | cccb0a3 | 2016-07-08 04:19: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 | #FIXME: See if we can avoid redefining the below types again in this file by moving to common file |
| 10 | tosca.nodes.SFlowService: |
| 11 | derived_from: tosca.nodes.Root |
| 12 | description: > |
| 13 | XOS SFlow Collection Service |
| 14 | capabilities: |
| 15 | scalable: |
| 16 | type: tosca.capabilities.Scalable |
| 17 | service: |
| 18 | type: tosca.capabilities.xos.Service |
| 19 | properties: |
| 20 | no-delete: |
| 21 | type: boolean |
| 22 | default: false |
| 23 | description: Do not allow Tosca to delete this object |
| 24 | no-create: |
| 25 | type: boolean |
| 26 | default: false |
| 27 | description: Do not allow Tosca to create this object |
| 28 | no-update: |
| 29 | type: boolean |
| 30 | default: false |
| 31 | description: Do not allow Tosca to update this object |
| 32 | kind: |
| 33 | type: string |
| 34 | default: generic |
| 35 | description: Type of service. |
| 36 | view_url: |
| 37 | type: string |
| 38 | required: false |
| 39 | description: URL to follow when icon is clicked in the Service Directory. |
| 40 | icon_url: |
| 41 | type: string |
| 42 | required: false |
| 43 | description: ICON to display in the Service Directory. |
| 44 | enabled: |
| 45 | type: boolean |
| 46 | default: true |
| 47 | published: |
| 48 | type: boolean |
| 49 | default: true |
| 50 | description: If True then display this Service in the Service Directory. |
| 51 | public_key: |
| 52 | type: string |
| 53 | required: false |
| 54 | description: Public key to install into Instances to allows Services to SSH into them. |
| 55 | private_key_fn: |
| 56 | type: string |
| 57 | required: false |
| 58 | description: Location of private key file |
| 59 | versionNumber: |
| 60 | type: string |
| 61 | required: false |
| 62 | description: Version number of Service. |
| 63 | sflow_port: |
| 64 | type: integer |
| 65 | required: false |
| 66 | default: 6343 |
| 67 | description: sFlow listening port |
| 68 | sflow_api_port: |
| 69 | type: integer |
| 70 | required: false |
| 71 | default: 33333 |
| 72 | description: sFlow publish subscribe api listening port |
| 73 | |
| 74 | tosca.nodes.CeilometerService: |
| 75 | derived_from: tosca.nodes.Root |
| 76 | description: > |
| 77 | XOS Ceilometer Service |
| 78 | capabilities: |
| 79 | scalable: |
| 80 | type: tosca.capabilities.Scalable |
| 81 | service: |
| 82 | type: tosca.capabilities.xos.Service |
| 83 | properties: |
| 84 | no-delete: |
| 85 | type: boolean |
| 86 | default: false |
| 87 | description: Do not allow Tosca to delete this object |
| 88 | no-create: |
| 89 | type: boolean |
| 90 | default: false |
| 91 | description: Do not allow Tosca to create this object |
| 92 | no-update: |
| 93 | type: boolean |
| 94 | default: false |
| 95 | description: Do not allow Tosca to update this object |
| 96 | kind: |
| 97 | type: string |
| 98 | default: generic |
| 99 | description: Type of service. |
| 100 | view_url: |
| 101 | type: string |
| 102 | required: false |
| 103 | description: URL to follow when icon is clicked in the Service Directory. |
| 104 | icon_url: |
| 105 | type: string |
| 106 | required: false |
| 107 | description: ICON to display in the Service Directory. |
| 108 | enabled: |
| 109 | type: boolean |
| 110 | default: true |
| 111 | published: |
| 112 | type: boolean |
| 113 | default: true |
| 114 | description: If True then display this Service in the Service Directory. |
| 115 | public_key: |
| 116 | type: string |
| 117 | required: false |
| 118 | description: Public key to install into Instances to allows Services to SSH into them. |
| 119 | private_key_fn: |
| 120 | type: string |
| 121 | required: false |
| 122 | description: Location of private key file |
| 123 | versionNumber: |
| 124 | type: string |
| 125 | required: false |
| 126 | description: Version number of Service. |
| 127 | ceilometer_pub_sub_url: |
| 128 | type: string |
| 129 | required: false |
| 130 | description: REST URL of ceilometer PUB/SUB component |
| 131 | |
| 132 | tosca.nodes.CeilometerTenant: |
| 133 | derived_from: tosca.nodes.Root |
| 134 | description: > |
| 135 | CORD: A Tenant of the Ceilometer Service. |
| 136 | properties: |
| 137 | kind: |
| 138 | type: string |
| 139 | default: generic |
| 140 | description: Kind of tenant |
| 141 | |
| 142 | topology_template: |
| 143 | node_templates: |
| 144 | service_ceilometer: |
| 145 | type: tosca.nodes.CeilometerService |
| 146 | properties: |
| 147 | no-create: true |
| 148 | no-update: true |
| 149 | no-delete: true |
| 150 | |
| 151 | my_ceilometer_tenant: |
| 152 | description: Ceilometer Service default Tenant |
| 153 | type: tosca.nodes.CeilometerTenant |
| 154 | requirements: |
| 155 | - provider_service: |
| 156 | node: service_ceilometer |
| 157 | relationship: tosca.relationships.MemberOfService |
| 158 | |
| 159 | Ceilometer: |
| 160 | type: tosca.nodes.DashboardView |
| 161 | properties: |
| 162 | url: template:xosCeilometerDashboard |
| 163 | Tenant: |
| 164 | type: tosca.nodes.DashboardView |
| 165 | properties: |
| 166 | no-create: true |
| 167 | no-update: true |
| 168 | no-delete: true |
| 169 | |
| 170 | padmin@vicci.org: |
| 171 | type: tosca.nodes.User |
| 172 | properties: |
| 173 | firstname: XOS |
| 174 | lastname: admin |
| 175 | is_admin: true |
| 176 | requirements: |
| 177 | - tenant_dashboard: |
| 178 | node: Tenant |
| 179 | relationship: tosca.relationships.UsesDashboard |
| 180 | - ceilometer_dashboard: |
| 181 | node: Ceilometer |
| 182 | relationship: tosca.relationships.UsesDashboard |