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 |
| 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 | private_key_fn: /opt/xos/synchronizers/monitoring_channel/monitoring_channel_private_key |
| 128 | artifacts: |
| 129 | pubkey: /opt/xos/synchronizers/monitoring_channel/monitoring_channel_public_key |
| 130 | |
| 131 | # service_sflow: |
| 132 | # type: tosca.nodes.SFlowService |
| 133 | # requirements: |
| 134 | # properties: |
| 135 | # view_url: /admin/ceilometer/sflowservice/$id$/ |
| 136 | # kind: sflow |
| 137 | # sflow_port: 6343 |
| 138 | # sflow_api_port: 33333 |
| 139 | |
| 140 | Private: |
| 141 | type: tosca.nodes.NetworkTemplate |
| 142 | |
| 143 | management: |
| 144 | type: tosca.nodes.network.Network.XOS |
| 145 | properties: |
| 146 | no-create: true |
| 147 | no-delete: true |
| 148 | no-update: true |
| 149 | |
| 150 | # ceilometer_network: |
| 151 | # type: tosca.nodes.network.Network.XOS |
| 152 | # properties: |
| 153 | # ip_version: 4 |
| 154 | # labels: ceilometer_client_access |
| 155 | # requirements: |
| 156 | # - network_template: |
| 157 | # node: Private |
| 158 | # relationship: tosca.relationships.UsesNetworkTemplate |
| 159 | # - owner: |
| 160 | # node: mysite_ceilometer |
| 161 | # relationship: tosca.relationships.MemberOfSlice |
| 162 | # - connection: |
| 163 | # node: mysite_ceilometer |
| 164 | # relationship: tosca.relationships.ConnectsToSlice |
| 165 | |
| 166 | mysite: |
| 167 | type: tosca.nodes.Site |
| 168 | |
| 169 | trusty-server-multi-nic: |
| 170 | type: tosca.nodes.Image |
| 171 | |
| 172 | ceilometer-trusty-server-multi-nic: |
| 173 | type: tosca.nodes.Image |
| 174 | |
| 175 | m1.small: |
| 176 | type: tosca.nodes.Flavor |
| 177 | |
| 178 | mysite_ceilometer: |
| 179 | description: Ceilometer Proxy Slice |
| 180 | type: tosca.nodes.Slice |
| 181 | requirements: |
| 182 | - ceilometer_service: |
| 183 | node: service_ceilometer |
| 184 | relationship: tosca.relationships.MemberOfService |
| 185 | - site: |
| 186 | node: mysite |
| 187 | relationship: tosca.relationships.MemberOfSite |
| 188 | - default_image: |
| 189 | node: ceilometer-trusty-server-multi-nic |
| 190 | relationship: tosca.relationships.DefaultImage |
| 191 | - management: |
| 192 | node: management |
| 193 | relationship: tosca.relationships.ConnectsToNetwork |
| 194 | - m1.small: |
| 195 | node: m1.small |
| 196 | relationship: tosca.relationships.DefaultFlavor |
| 197 | |
| 198 | # mysite_sflow: |
| 199 | # description: Slice for sFlow service |
| 200 | # type: tosca.nodes.Slice |
| 201 | # requirements: |
| 202 | # - sflow_service: |
| 203 | # node: service_sflow |
| 204 | # relationship: tosca.relationships.MemberOfService |
| 205 | # - site: |
| 206 | # node: mysite |
| 207 | # relationship: tosca.relationships.MemberOfSite |
| 208 | |
| 209 | my_ceilometer_tenant: |
| 210 | description: Ceilometer Service default Tenant |
| 211 | type: tosca.nodes.CeilometerTenant |
| 212 | requirements: |
| 213 | - provider_service: |
| 214 | node: service_ceilometer |
| 215 | relationship: tosca.relationships.MemberOfService |
| 216 | |
| 217 | # Virtual machines |
| 218 | # sflow_service_instance: |
| 219 | # type: tosca.nodes.Compute |
| 220 | # capabilities: |
| 221 | # # Host container properties |
| 222 | # host: |
| 223 | # properties: |
| 224 | # num_cpus: 1 |
| 225 | # disk_size: 10 GB |
| 226 | # mem_size: 4 MB |
| 227 | # # Guest Operating System properties |
| 228 | # os: |
| 229 | # properties: |
| 230 | # # host Operating System image properties |
| 231 | # architecture: x86_64 |
| 232 | # type: linux |
| 233 | # distribution: Ubuntu |
| 234 | # version: 14.10 |
| 235 | # requirements: |
| 236 | # - slice: |
| 237 | # node: mysite_sflow |
| 238 | # relationship: tosca.relationships.MemberOfSlice |
| 239 | |
| 240 | Ceilometer: |
| 241 | type: tosca.nodes.DashboardView |
| 242 | properties: |
| 243 | url: template:xosCeilometerDashboard |
| 244 | Tenant: |
| 245 | type: tosca.nodes.DashboardView |
| 246 | properties: |
| 247 | no-create: true |
| 248 | no-update: true |
| 249 | no-delete: true |
| 250 | |
| 251 | padmin@vicci.org: |
| 252 | type: tosca.nodes.User |
| 253 | properties: |
| 254 | firstname: XOS |
| 255 | lastname: admin |
| 256 | is_admin: true |
| 257 | requirements: |
| 258 | - tenant_dashboard: |
| 259 | node: Tenant |
| 260 | relationship: tosca.relationships.UsesDashboard |
| 261 | - ceilometer_dashboard: |
| 262 | node: Ceilometer |
| 263 | relationship: tosca.relationships.UsesDashboard |