<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <Definitions xmlns="http://docs.oasis-open.org/tosca/ns/2011/12" id="winery-defs-for_ns74-Moodle" targetNamespace="https://github.com/jacopogiallo/tosca-mart-repo/ServiceTemplates"> <Import namespace="https://github.com/jacopogiallo/tosca-mart-repo/RelationshipTypes" location="https://raw.githubusercontent.com/jacopogiallo/TOSCA-MART/master/Dataset/RelationshipTypes/HostedOnRelationshipType.tosca" importType="http://docs.oasis-open.org/tosca/ns/2011/12"/> <Import namespace="https://github.com/jacopogiallo/tosca-mart-repo/RelationshipTypes" location="https://raw.githubusercontent.com/jacopogiallo/TOSCA-MART/master/Dataset/RelationshipTypes/ConnectsToRelationshipType.tosca" importType="http://docs.oasis-open.org/tosca/ns/2011/12"/> <Import namespace="https://github.com/jacopogiallo/tosca-mart-repo/NodeTypes" location="https://raw.githubusercontent.com/jacopogiallo/TOSCA-MART/master/Dataset/NodeTypes/MoodleNodeType.tosca" importType="http://docs.oasis-open.org/tosca/ns/2011/12"/> <Import namespace="https://github.com/jacopogiallo/tosca-mart-repo/NodeTypes" location="https://raw.githubusercontent.com/jacopogiallo/TOSCA-MART/master/Dataset/NodeTypes/MySQLDBNodeType.tosca" importType="http://docs.oasis-open.org/tosca/ns/2011/12"/> <Import namespace="https://github.com/jacopogiallo/tosca-mart-repo/NodeTypes" location="https://raw.githubusercontent.com/jacopogiallo/TOSCA-MART/master/Dataset/NodeTypes/XAMPPNodeType.tosca" importType="http://docs.oasis-open.org/tosca/ns/2011/12"/> <Import namespace="https://github.com/jacopogiallo/tosca-mart-repo/NodeTypes" location="https://raw.githubusercontent.com/jacopogiallo/TOSCA-MART/master/Dataset/NodeTypes/UbuntuOSNodeType.tosca" importType="http://docs.oasis-open.org/tosca/ns/2011/12"/> <Import namespace="https://github.com/jacopogiallo/tosca-mart-repo/NodeTypes" location="https://raw.githubusercontent.com/jacopogiallo/TOSCA-MART/master/Dataset/NodeTypes/VMWareVMNodeType.tosca" importType="http://docs.oasis-open.org/tosca/ns/2011/12"/> <Import namespace="https://github.com/jacopogiallo/tosca-mart-repo/CapabilityTypes" location="https://raw.githubusercontent.com/jacopogiallo/TOSCA-MART/master/Dataset/CapabilityTypes/OSContainerCapabilityType.tosca" importType="http://docs.oasis-open.org/tosca/ns/2011/12"/> <Import namespace="https://github.com/jacopogiallo/tosca-mart-repo/CapabilityTypes" location="https://raw.githubusercontent.com/jacopogiallo/TOSCA-MART/master/Dataset/CapabilityTypes/SoftwareContainerCapabilityType.tosca" importType="http://docs.oasis-open.org/tosca/ns/2011/12"/> <Import namespace="https://github.com/jacopogiallo/tosca-mart-repo/CapabilityTypes" location="https://raw.githubusercontent.com/jacopogiallo/TOSCA-MART/master/Dataset/CapabilityTypes/PHPRuntimeCapabilityType.tosca" importType="http://docs.oasis-open.org/tosca/ns/2011/12"/> <Import namespace="https://github.com/jacopogiallo/tosca-mart-repo/CapabilityTypes" location="https://raw.githubusercontent.com/jacopogiallo/TOSCA-MART/master/Dataset/CapabilityTypes/SQLRuntimeCapabilityType.tosca" importType="http://docs.oasis-open.org/tosca/ns/2011/12"/> <Import namespace="https://github.com/jacopogiallo/tosca-mart-repo/CapabilityTypes" location="https://raw.githubusercontent.com/jacopogiallo/TOSCA-MART/master/Dataset/CapabilityTypes/DBConnectionCapabilityType.tosca" importType="http://docs.oasis-open.org/tosca/ns/2011/12"/> <Import namespace="https://github.com/jacopogiallo/tosca-mart-repo/RequirementTypes" location="https://raw.githubusercontent.com/jacopogiallo/TOSCA-MART/master/Dataset/RequirementTypes/OSContainerRequirementType.tosca" importType="http://docs.oasis-open.org/tosca/ns/2011/12"/> <Import namespace="https://github.com/jacopogiallo/tosca-mart-repo/RequirementTypes" location="https://raw.githubusercontent.com/jacopogiallo/TOSCA-MART/master/Dataset/RequirementTypes/SoftwareContainerRequirementType.tosca" importType="http://docs.oasis-open.org/tosca/ns/2011/12"/> <Import namespace="https://github.com/jacopogiallo/tosca-mart-repo/RequirementTypes" location="https://raw.githubusercontent.com/jacopogiallo/TOSCA-MART/master/Dataset/RequirementTypes/SQLRuntimeRequirementType.tosca" importType="http://docs.oasis-open.org/tosca/ns/2011/12"/> <Import namespace="https://github.com/jacopogiallo/tosca-mart-repo/RequirementTypes" location="https://raw.githubusercontent.com/jacopogiallo/TOSCA-MART/master/Dataset/RequirementTypes/PHPRuntimeRequirementType.tosca" importType="http://docs.oasis-open.org/tosca/ns/2011/12"/> <Import namespace="https://github.com/jacopogiallo/tosca-mart-repo/RequirementTypes" location="https://raw.githubusercontent.com/jacopogiallo/TOSCA-MART/master/Dataset/RequirementTypes/DBConnectionRequirementType.tosca" importType="http://docs.oasis-open.org/tosca/ns/2011/12"/> <ServiceTemplate id="Moodle_X_" name="Moodle" targetNamespace="https://github.com/jacopogiallo/tosca-mart-repo/ServiceTemplates"> <TopologyTemplate> <NodeTemplate xmlns:ns55="https://github.com/jacopogiallo/tosca-mart-repo/NodeTypes" xmlns:winery="http://www.opentosca.org/winery/extensions/tosca/2013/02/12" name="Moodle" id="Moodle" type="ns55:MoodleNodeType" winery:x="171" winery:y="66"> <Properties> <ns61:Properties xmlns:ns61="https://github.com/jacopogiallo/tosca-mart-repo/NodeTypes/propertiesdefinition/winery" xmlns="https://github.com/jacopogiallo/tosca-mart-repo/NodeTypes/propertiesdefinition/winery" xmlns:ns2="http://www.eclipse.org/winery/model/selfservice" xmlns:tosca="http://docs.oasis-open.org/tosca/ns/2011/12" xmlns:ty="https://github.com/jacopogiallo/tosca-mart-repo/NodeTypes"> <Endpoint>https://github.com/jacopogiallo/TOSCAMART/Moodle</Endpoint> </ns61:Properties> </Properties> <Requirements> <Requirement xmlns:ns39="https://github.com/jacopogiallo/tosca-mart-repo/RequirementTypes" name="RuntimeSupport" id="WebAppRuntimeSupportR" type="ns39:PHPRuntimeRequirementType"/> <Requirement xmlns:ns39="https://github.com/jacopogiallo/tosca-mart-repo/RequirementTypes" name="DatabaseConnection" id="WebAppDBConnectionSupportR" type="ns39:DBConnectionRequirementType"/> </Requirements> </NodeTemplate> <NodeTemplate xmlns:ns55="https://github.com/jacopogiallo/tosca-mart-repo/NodeTypes" xmlns:winery="http://www.opentosca.org/winery/extensions/tosca/2013/02/12" name="Database" id="Database" type="ns55:MySQLDBNodeType" winery:x="556" winery:y="80"> <Requirements> <Requirement xmlns:ns39="https://github.com/jacopogiallo/tosca-mart-repo/RequirementTypes" name="RuntimeSupport" id="DBRuntimeSupportR" type="ns39:SQLRuntimeRequirementType"/> </Requirements> <Capabilities> <Capability xmlns:ns37="https://github.com/jacopogiallo/tosca-mart-repo/CapabilityTypes" name="DatabaseConnection" id="DBConnectionC" type="ns37:DBConnectionCapabilityType"/> </Capabilities> </NodeTemplate> <NodeTemplate xmlns:ns55="https://github.com/jacopogiallo/tosca-mart-repo/NodeTypes" xmlns:winery="http://www.opentosca.org/winery/extensions/tosca/2013/02/12" name="OperatingSystem" id="OperatingSystem" type="ns55:UbuntuOSNodeType" winery:x="296" winery:y="600"> <Requirements> <Requirement xmlns:ns39="https://github.com/jacopogiallo/tosca-mart-repo/RequirementTypes" name="Container" id="OSContainerR" type="ns39:OSContainerRequirementType"/> </Requirements> <Capabilities> <Capability xmlns:ns37="https://github.com/jacopogiallo/tosca-mart-repo/CapabilityTypes" name="Container" id="OSContainerC" type="ns37:SoftwareContainerCapabilityType"/> </Capabilities> </NodeTemplate> <NodeTemplate xmlns:ns55="https://github.com/jacopogiallo/tosca-mart-repo/NodeTypes" xmlns:winery="http://www.opentosca.org/winery/extensions/tosca/2013/02/12" name="VirtualMachine" id="VirtualMachine" type="ns55:VMWareVMNodeType" winery:x="296" winery:y="775"> <Properties> <ns61:Properties xmlns:ns61="https://github.com/jacopogiallo/tosca-mart-repo/NodeTypes/propertiesdefinition/winery" xmlns="https://github.com/jacopogiallo/tosca-mart-repo/NodeTypes/propertiesdefinition/winery" xmlns:ns2="http://www.eclipse.org/winery/model/selfservice" xmlns:tosca="http://docs.oasis-open.org/tosca/ns/2011/12" xmlns:ty="https://github.com/jacopogiallo/tosca-mart-repo/NodeTypes"> <DiskSize>15</DiskSize> <IPAddress>131.114.88.220</IPAddress> <MemorySize>2048</MemorySize> <NumberOfCPUs>1</NumberOfCPUs> <Region>Europe</Region> <User>soldan</User> </ns61:Properties> </Properties> <Capabilities> <Capability xmlns:ns37="https://github.com/jacopogiallo/tosca-mart-repo/CapabilityTypes" name="Container" id="VMContainerC" type="ns37:OSContainerCapabilityType"/> </Capabilities> </NodeTemplate> <NodeTemplate xmlns:ns55="https://github.com/jacopogiallo/tosca-mart-repo/NodeTypes" xmlns:winery="http://www.opentosca.org/winery/extensions/tosca/2013/02/12" name="XAMPP" id="XAMPP" type="ns55:XAMPPNodeType" winery:x="296" winery:y="425"> <Properties> <ns61:Properties xmlns:ns61="https://github.com/jacopogiallo/tosca-mart-repo/NodeTypes/propertiesdefinition/winery" xmlns="https://github.com/jacopogiallo/tosca-mart-repo/NodeTypes/propertiesdefinition/winery" xmlns:ns2="http://www.eclipse.org/winery/model/selfservice" xmlns:tosca="http://docs.oasis-open.org/tosca/ns/2011/12" xmlns:ty="https://github.com/jacopogiallo/tosca-mart-repo/NodeTypes"> <ApplicationHostID>MoodleApp</ApplicationHostID> </ns61:Properties> </Properties> <Requirements> <Requirement xmlns:ns39="https://github.com/jacopogiallo/tosca-mart-repo/RequirementTypes" name="Container" id="XAMPPContainerR" type="ns39:SoftwareContainerRequirementType"/> </Requirements> <Capabilities> <Capability xmlns:ns37="https://github.com/jacopogiallo/tosca-mart-repo/CapabilityTypes" name="RuntimeSupport" id="XAMPPPHPRuntimeC" type="ns37:PHPRuntimeCapabilityType"/> <Capability xmlns:ns37="https://github.com/jacopogiallo/tosca-mart-repo/CapabilityTypes" name="DBRuntimeSupport" id="XAMPPDBRuntimeC" type="ns37:SQLRuntimeCapabilityType"/> </Capabilities> </NodeTemplate> <RelationshipTemplate xmlns:ns49="https://github.com/jacopogiallo/tosca-mart-repo/RelationshipTypes" name="con_OS_VM" id="con_OS_VM" type="ns49:HostedOnRelationshipType"> <SourceElement ref="OSContainerR"/> <TargetElement ref="VMContainerC"/> </RelationshipTemplate> <RelationshipTemplate xmlns:ns49="https://github.com/jacopogiallo/tosca-mart-repo/RelationshipTypes" name="con_APP_DB" id="con_APP_DB" type="ns49:ConnectsToRelationshipType"> <SourceElement ref="WebAppDBConnectionSupportR"/> <TargetElement ref="DBConnectionC"/> </RelationshipTemplate> <RelationshipTemplate xmlns:ns49="https://github.com/jacopogiallo/tosca-mart-repo/RelationshipTypes" name="con_APP_XAM" id="con_APP_XAM" type="ns49:HostedOnRelationshipType"> <SourceElement ref="WebAppRuntimeSupportR"/> <TargetElement ref="XAMPPPHPRuntimeC"/> </RelationshipTemplate> <RelationshipTemplate xmlns:ns49="https://github.com/jacopogiallo/tosca-mart-repo/RelationshipTypes" name="con_DB_XAM" id="con_DB_XAM" type="ns49:HostedOnRelationshipType"> <SourceElement ref="DBRuntimeSupportR"/> <TargetElement ref="XAMPPDBRuntimeC"/> </RelationshipTemplate> <RelationshipTemplate xmlns:ns49="https://github.com/jacopogiallo/tosca-mart-repo/RelationshipTypes" name="con_XAM_OS" id="con_XAM_OS" type="ns49:HostedOnRelationshipType"> <SourceElement ref="XAMPPContainerR"/> <TargetElement ref="OSContainerC"/> </RelationshipTemplate> </TopologyTemplate> </ServiceTemplate> </Definitions>