blob: 63ee17f138c5935b80df2fac849f7d106205c8c5 [file] [log] [blame]
tosca_definitions_version: tosca_simple_yaml_1_0
description: bootstrap XOS for OpenCloud
imports:
- custom_types/xos.yaml
topology_template:
node_templates:
xos:
type: tosca.nodes.XOS
properties:
ui_port: 9000
bootstrap_ui_port: 9001
docker_project_name: oc
db_container_name: ocb_xos_db_1
/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: true
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, files/xos_vtn_config, ENV_VAR ] }
read_only: true
requirements:
- xos:
node: xos
relationship: tosca.relationships.UsedByXOS
/root/setup:
type: tosca.nodes.XOSVolume
properties:
host_path: { path_join: [ SELF, CONFIG_DIR, ., ENV_VAR ] }
read_only: true
requirements:
- xos:
node: xos
relationship: tosca.relationships.UsedByXOS
/opt/xos/images:
type: tosca.nodes.XOSVolume
properties:
host_path: { path_join: [ SELF, CONFIG_DIR, images, ENV_VAR ] }
read_only: true
requirements:
- xos:
node: xos
relationship: tosca.relationships.UsedByXOS