blob: b886d870b69abc05a805b0debc11b24277541ee2 [file] [log] [blame]
Zack Williamsa2763112017-01-03 11:38:38 -07001tosca_definitions_version: tosca_simple_yaml_1_0
2
3description: Onboard XOS
4
5imports:
6 - custom_types/xos.yaml
7
8topology_template:
9 node_templates:
10
11 xos:
12 type: tosca.nodes.XOS
13 properties:
14 ui_port: {{ xos_ui_port }}
15 bootstrap_ui_port: {{ xos_bootstrap_ui_port }}
16 docker_project_name: {{ cord_profile | regex_replace('\W','') }}
17 db_container_name: {{ cord_profile | regex_replace('\W','') }}bs_xos_db_1
Scott Baker71954ac2017-04-10 21:41:31 -070018 source_ui_image: {{ xos_docker_image }}
Zack Williamsa2763112017-01-03 11:38:38 -070019{% if use_redis %}
20 redis_container_name: {{ cord_profile | regex_replace('\W','') }}bs_xos_redis_1
21{% endif %}
22{% if frontend_only is defined %}
23 frontend_only: {{ frontend_only }}
24{% endif %}
25{% if source_ui_image is defined %}
26 source_ui_image: {{ source_ui_image }}
27{% endif %}
28
29 /opt/xos/xos_configuration/xos_common_config:
30 type: tosca.nodes.XOSVolume
31 properties:
32 host_path: {{ cord_profile_dir }}/xos_common_config
33 read_only: True
34 requirements:
35 - xos:
36 node: xos
37 relationship: tosca.relationships.UsedByXOS
38
39 /opt/cord_profile:
40 type: tosca.nodes.XOSVolume
41 properties:
42 host_path: {{ cord_profile_dir }}
43 read_only: True
44 requirements:
45 - xos:
46 node: xos
47 relationship: tosca.relationships.UsedByXOS
48
49{% for library in xos_libraries %}
50 /opt/xos_libraries/{{ library }}:
51 type: tosca.nodes.XOSVolume
52 properties:
53 host_path: {{ cord_dir }}/orchestration/xos_libraries/{{ library }}
54 read_only: True
55 requirements:
56 - xos:
57 node: xos
58 relationship: tosca.relationships.UsedByXOS
59
60{% endfor %}
61
62
63{% for service in xos_services %}
64 /opt/xos_services/{{ service.path | basename }}:
65 type: tosca.nodes.XOSVolume
66 properties:
67 host_path: {{ cord_dir }}/{{ service.path }}
68 read_only: {{ service.read_only | default("True") }}
69 requirements:
70 - xos:
71 node: xos
72 relationship: tosca.relationships.UsedByXOS
73
74{% endfor %}
75
76{% for volume in xos_docker_volumes %}
77 {{ volume.container }}:
78 type: tosca.nodes.XOSVolume
79 properties:
80 host_path: {{ volume.host }}
81 read_only: {{ volume.read_only | default("True") }}
82 requirements:
83 - xos:
84 node: xos
85 relationship: tosca.relationships.UsedByXOS
86
87{% endfor %}
88