blob: f83e4d0dbc5904d96378d6b87e766a82023d1cd6 [file] [log] [blame]
Scott Bakerc41914d2017-06-26 14:00:52 -07001tosca_definitions_version: tosca_simple_yaml_1_0
2
3description: Setup the CDN on the pod
4
5imports:
6 - custom_types/xos.yaml
7
8topology_template:
9 node_templates:
10
11 Private:
12 type: tosca.nodes.NetworkTemplate
13
14 management:
15 type: tosca.nodes.network.Network.XOS
16 properties:
17 no-create: true
18 no-delete: true
19 no-update: true
20
21# cdn-public:
22# type: tosca.nodes.network.Network
23# properties:
24# ip_version: 4
25# cidr: 207.141.192.128/28
26# requirements:
27# - network_template:
28# node: Private
29# relationship: tosca.relationships.UsesNetworkTemplate
30# - owner:
31# node: mysite_cdn
32# relationship: tosca.relationships.MemberOfSlice
33# - connection:
34# node: mysite_cdn
35# relationship: tosca.relationships.ConnectsToSlice
36
37 mysite:
38 type: tosca.nodes.Site
39
40 public:
41 type: tosca.nodes.network.Network.XOS
42 properties:
43 no-create: true
44 no-delete: true
45 no-update: true
46
47 service#cdn:
48 type: tosca.nodes.Service
49 properties:
50 public_key: { get_artifact: [ SELF, pubkey, LOCAL_FILE] }
51 private_key_fn: /opt/xos/services/cdn/keys/amc_id_rsa
52 artifacts:
53 pubkey: /opt/cord_profile/key_import/cdnnode_id_rsa.pub
54
55 mysite_cdn_control:
56 description: This slice holds the controller for the CDN
57 type: tosca.nodes.Slice
58 properties:
59 network: noauto
60 requirements:
61 - site:
62 node: mysite
63 relationship: tosca.relationships.MemberOfSite
64 - management:
65 node: management
66 relationship: tosca.relationships.ConnectsToNetwork
67 - public:
68 node: public
69 relationship: tosca.relationships.ConnectsToNetwork
70 - cdn_service:
71 node: service#cdn
72 relationship: tosca.relationships.MemberOfService
73
74
75 mysite_cdn_nodes:
76 description: This slice holds the hypercache/rr nodes for the CDN
77 type: tosca.nodes.Slice
78 properties:
79 network: noauto
80 requirements:
81 - site:
82 node: mysite
83 relationship: tosca.relationships.MemberOfSite
84 - management:
85 node: management
86 relationship: tosca.relationships.ConnectsToNetwork
87 - public:
88 node: public
89 relationship: tosca.relationships.ConnectsToNetwork
90 - cdn_service:
91 node: service#cdn
92 relationship: tosca.relationships.MemberOfService
93
94 mysite_cdn_cli:
95 description: This slice holds the hypercache/rr nodes for the CDN
96 type: tosca.nodes.Slice
97 properties:
98 network: noauto
99 requirements:
100 - site:
101 node: mysite
102 relationship: tosca.relationships.MemberOfSite
103 - management:
104 node: management
105 relationship: tosca.relationships.ConnectsToNetwork
106 - public:
107 node: public
108 relationship: tosca.relationships.ConnectsToNetwork
109 - cdn_service:
110 node: service#cdn
111 relationship: tosca.relationships.MemberOfService