blob: 4d5a6c811918bd4a1a7dafb03c149aed95a0d7b2 [file] [log] [blame]
Srikanth Vavilapallib2a50192017-02-03 18:25:59 +00001tosca_definitions_version: tosca_simple_yaml_1_0
2
3description: Setup example service/slice to demonstrate auto-scaling for that service/slice.
4
5imports:
6 - custom_types/xos.yaml
7
8topology_template:
9 node_templates:
10 service_xyz:
11 type: tosca.nodes.Service
12 properties:
13 kind: xyz
14
15# private network template, created in fixtures.yml
16 Private:
17 type: tosca.nodes.NetworkTemplate
18
19# site, fully created in deployment.yaml
20 mysite:
21 type: tosca.nodes.Site
22
23 trusty-server-multi-nic:
24 type: tosca.nodes.Image
25
26 m1.small:
27 type: tosca.nodes.Flavor
28
29# management network, fully created in management-net.yaml
30 management:
31 type: tosca.nodes.network.Network.XOS
32 properties:
33 no-create: true
34 no-delete: true
35 no-update: true
36
37 mysite_scalable_xyz:
38 type: tosca.nodes.Slice
39 properties:
40 network: noauto
41 requirements:
42 - service:
43 node: service_xyz
44 relationship: tosca.relationships.MemberOfService
45 - site:
46 node: mysite
47 relationship: tosca.relationships.MemberOfSite
48 - management:
49 node: management
50 relationship: tosca.relationships.ConnectsToNetwork
51 - default_image:
52 node: trusty-server-multi-nic
53 relationship: tosca.relationships.DefaultImage
54 - m1.small:
55 node: m1.small
56 relationship: tosca.relationships.DefaultFlavor
57
58 # Virtual machines
59 xyz_service_vm1:
60 type: tosca.nodes.Compute
61 capabilities:
62 # Host container properties
63 host:
64 properties:
65 num_cpus: 1
66 disk_size: 20 GB
67 mem_size: 2 GB
68 requirements:
69 - slice:
70 node: mysite_scalable_xyz
71 relationship: tosca.relationships.MemberOfSlice
72 - image:
73 node: trusty-server-multi-nic
74 relationship: tosca.relationships.UsesImage
75