Created
May 18, 2012 18:48
-
-
Save ahonor/2726978 to your computer and use it in GitHub Desktop.
Example Yana XML import
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <yana> | |
| <attributes> | |
| <attribute id="controller" filter="String"/> | |
| <!-- Package --> | |
| <attribute id="arch" filter="String"/> | |
| <attribute id="base" filter="String"/> | |
| <attribute id="buildtime" filter="String"/> | |
| <attribute id="filename" filter="String"/> | |
| <attribute id="filetype" filter="String"/> | |
| <attribute id="installroot" filter="String"/> | |
| <attribute id="installrank" filter="String"/> | |
| <attribute id="release" filter="String"/> | |
| <attribute id="releasetag" filter="String"/> | |
| <attribute id="repoUrl" filter="URL"/> | |
| <attribute id="vendor" filter="String"/> | |
| <attribute id="version" filter="String"/> | |
| <!-- Node --> | |
| <attribute id="hostname" filter="String"/> | |
| <attribute id="osFamily" filter="String"/> | |
| <attribute id="osName" filter="String"/> | |
| <attribute id="osVersion" filter="String"/> | |
| <attribute id="osArch" filter="String"/> | |
| <attribute id="username" filter="String"/> | |
| <attribute id="appname" filter="String"/> | |
| <attribute id="environment" filter="String"/> | |
| <attribute id="service" filter="String"/> | |
| <!-- Service --> | |
| <attribute id="basedir" filter="String"/> | |
| <attribute id="startuprank" filter="String"/> | |
| <attribute id="port" filter="String"/> | |
| </attributes> | |
| <nodetypes> | |
| <nodetype id="Node"> | |
| <description>An application host</description> | |
| <image>Node.png</image> | |
| <templateAttributes> | |
| <templateAttribute id="node.hostname" attribute="hostname" required="false"/> | |
| <templateAttribute id="node.osArch" attribute="arch" required="false"/> | |
| <templateAttribute id="node.osFamily" attribute="osFamily" required="false"/> | |
| <templateAttribute id="node.osName" attribute="osName" required="false"/> | |
| <templateAttribute id="node.osVersion" attribute="osVersion" required="false"/> | |
| <templateAttribute id="node.username" attribute="username" required="false"/> | |
| <templateAttribute id="node.port" attribute="port" required="false"/> | |
| <templateAttribute id="node.basedir" attribute="basedir" required="false"/> | |
| <templateAttribute id="node.appname" attribute="appname" required="false"/> | |
| <templateAttribute id="node.service" attribute="service" required="false"/> | |
| <templateAttribute id="node.environment" attribute="environment" required="false"/> | |
| </templateAttributes> | |
| </nodetype> | |
| <nodetype id="Package"> | |
| <description>A software package</description> | |
| <image>Package.png</image> | |
| <templateAttributes> | |
| <templateAttribute id="package.arch" attribute="arch" required="false"/> | |
| <templateAttribute id="package.base" attribute="base" required="false"/> | |
| <templateAttribute id="package.buildtime" attribute="buildtime" required="false"/> | |
| <templateAttribute id="package.filename" attribute="filename" required="false"/> | |
| <templateAttribute id="package.filetype" attribute="filetype" required="false"/> | |
| <templateAttribute id="package.installroot" attribute="installroot" required="false"/> | |
| <templateAttribute id="package.installrank" attribute="installrank" required="false"/> | |
| <templateAttribute id="package.release" attribute="release" required="false"/> | |
| <templateAttribute id="package.releasetag" attribute="releasetag" required="false"/> | |
| <templateAttribute id="package.repoUrl" attribute="repoUrl" required="false"/> | |
| <templateAttribute id="package.vendor" attribute="vendor" required="false"/> | |
| <templateAttribute id="package.version" attribute="version" required="false"/> | |
| <templateAttribute id="package.controller" attribute="controller" required="false"/> | |
| </templateAttributes> | |
| </nodetype> | |
| <nodetype id="Service"> | |
| <description>A software service</description> | |
| <image>Service.png</image> | |
| <templateAttributes> | |
| <templateAttribute id="service.basedir" attribute="basedir" required="false"/> | |
| <templateAttribute id="service.startuprank" attribute="startuprank" required="false"/> | |
| <templateAttribute id="service.controller" attribute="controller" required="false"/> | |
| <templateAttribute id="service.port" attribute="port" required="false"/> | |
| </templateAttributes> | |
| </nodetype> | |
| <nodetype id="Site"> | |
| <description>A service site</description> | |
| <image>Site.png</image> | |
| <templateAttributes> | |
| <templateAttribute id="site.startuprank" attribute="startuprank" required="false"/> | |
| </templateAttributes> | |
| </nodetype> | |
| </nodetypes> | |
| <!-- | |
| Node Instances | |
| --> | |
| <nodes> | |
| <node id="ubuntu" nodetype="Node" tags="tomcat,simpleapp,qa"> | |
| <description>The ubuntu server</description> | |
| <values> | |
| <attributeValue templateAttribute="node.hostname">ubuntu</attributeValue> | |
| <attributeValue templateAttribute="node.osArch">i386</attributeValue> | |
| <attributeValue templateAttribute="node.osFamily">unix</attributeValue> | |
| <attributeValue templateAttribute="node.osName">Linux</attributeValue> | |
| <attributeValue templateAttribute="node.osVersion">2.6.32-28-generic</attributeValue> | |
| <attributeValue templateAttribute="node.username">alexh</attributeValue> | |
| <attributeValue templateAttribute="node.port">18080</attributeValue> | |
| <attributeValue templateAttribute="node.basedir">/tmp/demo/tomcat</attributeValue> | |
| <attributeValue templateAttribute="node.appname">simpleapp</attributeValue> | |
| <attributeValue templateAttribute="node.service">tomcat</attributeValue> | |
| <attributeValue templateAttribute="node.environment">qa</attributeValue> | |
| </values> | |
| </node> | |
| <node id="tomcat" nodetype="Service" tags="QA"> | |
| <description>The tomcat service</description> | |
| <values> | |
| <attributeValue templateAttribute="service.basedir">/tmp/demo/tomcat</attributeValue> | |
| <attributeValue templateAttribute="service.startuprank">1</attributeValue> | |
| <attributeValue templateAttribute="service.controller">tomcat</attributeValue> | |
| <attributeValue templateAttribute="service.port">18080</attributeValue> | |
| </values> | |
| </node> | |
| <node id="qa" nodetype="Site" tags="QA"> | |
| <description>The QA site</description> | |
| <values> | |
| <attributeValue templateAttribute="site.startuprank">1</attributeValue> | |
| </values> | |
| </node> | |
| <node id="apache-tomcat-5.5.31" nodetype="Package" tags="tomcat"> | |
| <description>the tomcat container</description> | |
| <values> | |
| <attributeValue templateAttribute="package.arch">no-arch</attributeValue> | |
| <attributeValue templateAttribute="package.base">apache-tomcat-5.5.31</attributeValue> | |
| <attributeValue templateAttribute="package.filename">apache-tomcat-5.5.31.zip</attributeValue> | |
| <attributeValue templateAttribute="package.filetype">zip</attributeValue> | |
| <attributeValue templateAttribute="package.installroot">/tmp/demo/tomcat</attributeValue> | |
| <attributeValue templateAttribute="package.installrank">1</attributeValue> | |
| <attributeValue templateAttribute="package.repoUrl">http://localhost/simpleapp/apache-tomcat-5.5.31.zip</attributeValue> | |
| <attributeValue templateAttribute="package.version">5.5.31</attributeValue> | |
| <attributeValue templateAttribute="package.controller">zip</attributeValue> | |
| </values> | |
| </node> | |
| <node id="simple-1.0.0.war" nodetype="Package" tags="tomcat"> | |
| <description>the simple webapp</description> | |
| <values> | |
| <attributeValue templateAttribute="package.arch">no-arch</attributeValue> | |
| <attributeValue templateAttribute="package.base">simple</attributeValue> | |
| <attributeValue templateAttribute="package.filename">simple-1.0.0.war</attributeValue> | |
| <attributeValue templateAttribute="package.filetype">war</attributeValue> | |
| <attributeValue templateAttribute="package.installroot">/tmp/demo/tomcat/webapps</attributeValue> | |
| <attributeValue templateAttribute="package.installrank">1</attributeValue> | |
| <attributeValue templateAttribute="package.repoUrl">http://localhost/simpleapp/simple-1.0.0.war</attributeValue> | |
| <attributeValue templateAttribute="package.version">1.0.0</attributeValue> | |
| <attributeValue templateAttribute="package.controller">war</attributeValue> | |
| </values> | |
| </node> | |
| </nodes> | |
| <nodetyperelationships> | |
| <nodetyperelationship rolename="environment" parent="Site" child="Node"/> | |
| <nodetyperelationship rolename="service" parent="Node" child="Service"/> | |
| <nodetyperelationship rolename="package" parent="Service" child="Package"/> | |
| </nodetyperelationships> | |
| <noderelationships> | |
| <noderelationship relationshipname="node" parent="qa" child="ubuntu"/> | |
| <noderelationship relationshipname="service" parent="ubuntu" child="tomcat"/> | |
| <noderelationship relationshipname="zip" parent="tomcat" child="apache-tomcat-5.5.31"/> | |
| <noderelationship relationshipname="war" parent="tomcat" child="simple-1.0.0.war"/> | |
| </noderelationships> | |
| </yana> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment