blob: 5b999cdea580d5b6bdef825573682785847197af [file] [log] [blame]
Matteo Scandolobb11ab52017-02-02 12:10:49 -08001tosca_definitions_version: tosca_simple_yaml_1_0
2
3description: Onboard the exampleservice
4
5imports:
6 - custom_types/xos.yaml
7
8topology_template:
9 node_templates:
10
11 # UI Container
12 xos-spa-gui:
13 type: tosca.nodes.Component
14 properties:
15 no-create: true
16 no-update: true
17 no-delete: true
18
19 # UI Extension Container
20 xos-sample-gui-extension:
21 type: tosca.nodes.Component
22 properties:
23 image: xosproject/xos-sample-gui-extension
24 ports: 4001:4000
25 # extra: '["xos-sample-gui-extension:4001/spa/vendor.js", "xos-sample-gui-extension:4001/spa/app.js"]'
26 extra: '["http://xos.dev:4001/spa/vendor.js", "http://xos.dev:4001/spa/app.js"]'
27
28 gui-to-extension:
29 type: tosca.nodes.ComponentLink
30 properties:
31 container: xos-sample-gui-extension
32 alias: xos-sample-gui-extension
33 kind: internal
34 requirements:
35 - xos:
36 node: xos-spa-gui
37 relationship: tosca.relationships.LinkOfComponent