blob: 0c1bc07fe2b525db3691991b87bb10fb88f4b8b4 [file] [log] [blame]
Gabe Black816018e2017-01-18 19:52:28 +00001tosca_definitions_version: tosca_simple_yaml_1_0
2
3description: Setup the PassiveTest on the pod
4
5imports:
6 - custom_types/xos.yaml
7 - custom_types/PassiveTest.yaml
8
9topology_template:
10 node_templates:
11
12 m1.large:
13 type: tosca.nodes.Flavor
14
15 mcord_taa:
16 type: tosca.nodes.Image
17
18 Private:
19 type: tosca.nodes.NetworkTemplate
20
21 mysite:
22 type: tosca.nodes.Site
23
24 management:
25 type: tosca.nodes.network.Network.XOS
26 properties:
27 no-create: true
28 no-delete: true
29 no-update: true
30
31
32 mysite_passivetest_slice:
33 description: This slice holds the PassiveTest service
34 type: tosca.nodes.Slice
35 requirements:
36 - site:
37 node: mysite
38 relationship: tosca.relationships.MemberOfSite
39 - management:
40 node: management
41 relationship: tosca.relationships.ConnectsToNetwork
42 - owner:
43 node: service_passivetest
44 relationship: tosca.relationships.MemberOfService
45 - image:
46 node: mcord_taa
47 relationship: tosca.relationships.DefaultImage
48 - default_flavor:
49 node: m1.large
50 relationship: tosca.relationships.DefaultFlavor
51
52 service_passivetest:
53 type: tosca.nodes.PassiveTest
54 requirements:
55 - management:
56 node: management
57 relationship: tosca.relationships.UsesNetwork
58 properties:
59 view_url: /admin/passivetest/passivetestservice/$id$/
60 kind: PassiveTest
61 public_key: { get_artifact: [ SELF, pubkey, LOCAL_FILE] }
62 private_key_fn: /opt/xos/services/passivetest/keys/passivetest_rsa
63 artifacts:
64 pubkey: /opt/xos/services/passivetest/keys/passivetest_rsa.pub
65
66 tenant#passivetesttenant1:
67 type: tosca.nodes.PassiveTestTenant
68 requirements:
69 - tenant:
70 node: service_passivetest
71 relationship: tosca.relationships.TenantOfService
72 - dependency:
73 node: mysite_passivetest_slice
74 relationship: tosca.relationships.DependsOn
75