blob: 7dbb878040cfd1e36a0547ec204bd394dd256f2a [file] [log] [blame]
tosca_definitions_version: tosca_simple_yaml_1_0
imports:
- custom_types/xos.yaml
description: openstack extensions to deployment, generated by platform-install
topology_template:
node_templates:
# Images and flavors
trusty-server-multi-nic:
type: tosca.nodes.Image
properties:
path: /opt/xos/images/trusty-server-multi-nic.qcow2
disk_format: QCOW2
container_format: BARE
licenseserver:
type: tosca.nodes.Image
properties:
path: /opt/xos/images/licenseserver.qcow2
disk_format: QCOW2
container_format: BARE
hss:
type: tosca.nodes.Image
properties:
path: /opt/xos/images/hss.qcow2
disk_format: QCOW2
container_format: BARE
mme:
type: tosca.nodes.Image
properties:
path: /opt/xos/images/mme.qcow2
disk_format: QCOW2
container_format: BARE
pgwc:
type: tosca.nodes.Image
properties:
path: /opt/xos/images/pgwc.qcow2
disk_format: QCOW2
container_format: BARE
pgwu:
type: tosca.nodes.Image
properties:
path: /opt/xos/images/pgwu.qcow2
disk_format: QCOW2
container_format: BARE
sgwc:
type: tosca.nodes.Image
properties:
path: /opt/xos/images/sgwc.qcow2
disk_format: QCOW2
container_format: BARE
sgwu:
type: tosca.nodes.Image
properties:
path: /opt/xos/images/sgwu.qcow2
disk_format: QCOW2
container_format: BARE
bbu:
type: tosca.nodes.Image
properties:
path: /opt/xos/images/bbu.qcow2
disk_format: QCOW2
container_format: BARE
m1.small:
type: tosca.nodes.Flavor
m1.medium:
type: tosca.nodes.Flavor
m1.large:
type: tosca.nodes.Flavor
m1.xlarge:
type: tosca.nodes.Flavor
# Deployment - adds images/flavors to site defined in deployment.yaml
MyDeployment:
type: tosca.nodes.Deployment
requirements:
- m1.small:
node: m1.small
relationship: tosca.relationships.SupportsFlavor
- m1.medium:
node: m1.medium
relationship: tosca.relationships.SupportsFlavor
- m1.large:
node: m1.large
relationship: tosca.relationships.SupportsFlavor
- m1.xlarge:
node: m1.xlarge
relationship: tosca.relationships.SupportsFlavor
# OpenStack Controller
mysite_MyDeployment_openstack:
type: tosca.nodes.Controller
requirements:
- deployment:
node: MyDeployment
relationship: tosca.relationships.ControllerDeployment
properties:
backend_type: OpenStack
version: Kilo
auth_url: { get_script_env: [ SELF, adminrc, OS_AUTH_URL, LOCAL_FILE] }
admin_user: { get_script_env: [ SELF, adminrc, OS_USERNAME, LOCAL_FILE] }
admin_password: { get_script_env: [ SELF, adminrc, OS_PASSWORD, LOCAL_FILE] }
admin_tenant: { get_script_env: [ SELF, adminrc, OS_TENANT_NAME, LOCAL_FILE] }
domain: Default
artifacts:
adminrc: /root/setup/admin-openrc.sh
# Site - adds openstack controller to site defined in deployment.yaml
mysite:
type: tosca.nodes.Site
properties:
display_name: MySite
site_url: http://mysite.opencloud.us/
hosts_nodes: true
requirements:
- deployment:
node: MyDeployment
relationship: tosca.relationships.MemberOfDeployment
- controller:
node: mysite_MyDeployment_openstack
relationship: tosca.relationships.UsesController