blob: db10d447b7d1fbc301018dacc2ff3406b44c7c2d [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 }}
Scott Baker57196542017-04-11 15:48:17 -070019# dest_ui_image: docker-registry:5000/xosproject/xos-ui:candidate
20# no_build: True
Zack Williamsa2763112017-01-03 11:38:38 -070021{% if use_redis %}
22 redis_container_name: {{ cord_profile | regex_replace('\W','') }}bs_xos_redis_1
23{% endif %}
24{% if frontend_only is defined %}
25 frontend_only: {{ frontend_only }}
26{% endif %}
27{% if source_ui_image is defined %}
28 source_ui_image: {{ source_ui_image }}
29{% endif %}
30
31 /opt/xos/xos_configuration/xos_common_config:
32 type: tosca.nodes.XOSVolume
33 properties:
34 host_path: {{ cord_profile_dir }}/xos_common_config
35 read_only: True
36 requirements:
37 - xos:
38 node: xos
39 relationship: tosca.relationships.UsedByXOS
40
41 /opt/cord_profile:
42 type: tosca.nodes.XOSVolume
43 properties:
44 host_path: {{ cord_profile_dir }}
45 read_only: True
46 requirements:
47 - xos:
48 node: xos
49 relationship: tosca.relationships.UsedByXOS
50
51{% for library in xos_libraries %}
52 /opt/xos_libraries/{{ library }}:
53 type: tosca.nodes.XOSVolume
54 properties:
55 host_path: {{ cord_dir }}/orchestration/xos_libraries/{{ library }}
56 read_only: True
57 requirements:
58 - xos:
59 node: xos
60 relationship: tosca.relationships.UsedByXOS
61
62{% endfor %}
63
64
65{% for service in xos_services %}
66 /opt/xos_services/{{ service.path | basename }}:
67 type: tosca.nodes.XOSVolume
68 properties:
69 host_path: {{ cord_dir }}/{{ service.path }}
70 read_only: {{ service.read_only | default("True") }}
71 requirements:
72 - xos:
73 node: xos
74 relationship: tosca.relationships.UsedByXOS
75
76{% endfor %}
77
78{% for volume in xos_docker_volumes %}
79 {{ volume.container }}:
80 type: tosca.nodes.XOSVolume
81 properties:
82 host_path: {{ volume.host }}
83 read_only: {{ volume.read_only | default("True") }}
84 requirements:
85 - xos:
86 node: xos
87 relationship: tosca.relationships.UsedByXOS
88
89{% endfor %}
90