blob: 763f31ae57ab8c1d0c5cb30904f3136c626e2961 [file] [log] [blame]
tosca_definitions_version: tosca_simple_yaml_1_0
description: Onboard the exampleservice
imports:
- custom_types/xos.yaml
topology_template:
node_templates:
xos:
type: tosca.nodes.XOS
properties:
ui_port: 9999
bootstrap_ui_port: 9998
docker_project_name: frontend
db_container_name: frontendbs_xos_db_1
frontend_only: true
# Common config folder
/opt/xos/xos_configuration/xos_common_config:
type: tosca.nodes.XOSVolume
properties:
host_path: { path_join: [ SELF, CONFIG_DIR, ../common/xos_common_config, ENV_VAR ] }
read_only: false
requirements:
- xos:
node: xos
relationship: tosca.relationships.UsedByXOS
/opt/xos/xos_configuration/xos_vtn_config:
type: tosca.nodes.XOSVolume
properties:
host_path: { path_join: [ SELF, CONFIG_DIR, ../vtn/files/xos_vtn_config, ENV_VAR ] }
read_only: true
requirements:
- xos:
node: xos
relationship: tosca.relationships.UsedByXOS
# Frontend Config
/opt/xos/configurations/frontend:
type: tosca.nodes.XOSVolume
properties:
host_path: { path_join: [ SELF, CONFIG_DIR, ./, ENV_VAR ] }
read_only: false
requirements:
- xos:
node: xos
relationship: tosca.relationships.UsedByXOS
# API Folder
/opt/xos/api:
type: tosca.nodes.XOSVolume
properties:
host_path: { path_join: [ SELF, CONFIG_DIR, ../../api/, ENV_VAR ] }
read_only: false
requirements:
- xos:
node: xos
relationship: tosca.relationships.UsedByXOS
# Core Folder
/opt/xos/core:
type: tosca.nodes.XOSVolume
properties:
host_path: { path_join: [ SELF, CONFIG_DIR, ../../core/, ENV_VAR ] }
read_only: false
requirements:
- xos:
node: xos
relationship: tosca.relationships.UsedByXOS
# TOSCA Folder
/opt/xos/tosca:
type: tosca.nodes.XOSVolume
properties:
host_path: { path_join: [ SELF, CONFIG_DIR, ../../tosca/, ENV_VAR ] }
read_only: false
requirements:
- xos:
node: xos
relationship: tosca.relationships.UsedByXOS
# View Folder
/opt/xos/core/xoslib/static:
type: tosca.nodes.XOSVolume
properties:
host_path: { path_join: [ SELF, CONFIG_DIR, ../../core/xoslib/static/, ENV_VAR ] }
read_only: false
requirements:
- xos:
node: xos
relationship: tosca.relationships.UsedByXOS