Skip to content

Instantly share code, notes, and snippets.

@ahonor
Created July 26, 2012 05:48
Show Gist options
  • Select an option

  • Save ahonor/3180468 to your computer and use it in GitHub Desktop.

Select an option

Save ahonor/3180468 to your computer and use it in GitHub Desktop.
Strawman XML import file for yana2
<yana>
<attributes>
<attribute name="controller" filter="String"/>
<!-- Package -->
<attribute name="arch" filter="String"/>
<attribute name="base" filter="String"/>
<attribute name="buildtime" filter="String"/>
<attribute name="filename" filter="String"/>
<attribute name="filetype" filter="String"/>
<attribute name="installroot" filter="String"/>
<attribute name="installrank" filter="String"/>
<attribute name="release" filter="String"/>
<attribute name="releasetag" filter="String"/>
<attribute name="repoUrl" filter="URL"/>
<attribute name="vendor" filter="String"/>
<attribute name="version" filter="String"/>
<!-- Host -->
<attribute name="hostname" filter="String"/>
<attribute name="osFamily" filter="String"/>
<attribute name="osName" filter="String"/>
<attribute name="osVersion" filter="String"/>
<attribute name="osArch" filter="String"/>
<attribute name="username" filter="String"/>
<attribute name="appname" filter="String"/>
<attribute name="environment" filter="String"/>
<attribute name="service" filter="String"/>
<!-- Service -->
<attribute name="basedir" filter="String"/>
<attribute name="startuprank" filter="String"/>
<attribute name="port" filter="String"/>
</attributes>
<nodetypes>
<nodetype name="Host">
<description>An application host</description>
<image>Node.png</image>
<attributes>
<attribute name="hostname" required="true"/>
<attribute name="arch" required="false"/>
<attribute name="osFamily" required="false"/>
<attribute name="osName" required="false"/>
<attribute name="osVersion" required="false"/>
<attribute name="username" required="false"/>
<attribute name="port" required="false"/>
<attribute name="basedir" required="false"/>
<attribute name="appname" required="false"/>
<attribute name="service" required="false"/>
<attribute name="environment" required="false"/>
</attributes>
<relationships>
<parent name="environment" type="Site"/>
<child name="service" type="Service"/>
</relationships>
</nodetype>
<nodetype name="Package">
<description>A software package</description>
<image>Package.png</image>
<attributes>
<attribute name="arch" required="false"/>
<attribute name="base" required="false"/>
<attribute name="buildtime" required="false"/>
<attribute name="filename" required="false"/>
<attribute name="filetype" required="false"/>
<attribute name="installroot" required="false"/>
<attribute name="installrank" required="false"/>
<attribute name="release" required="false"/>
<attribute name="releasetag" required="false"/>
<attribute name="repoUrl" required="false"/>
<attribute name="vendor" required="false"/>
<attribute name="version" required="false"/>
<attribute name="controller" required="false"/>
</attributes>
</nodetype>
<nodetype name="Service">
<description>A software service</description>
<image>Service.png</image>
<attributes>
<attribute name="basedir" required="false"/>
<attribute name="startuprank" required="false"/>
<attribute name="controller" required="false"/>
<attribute name="port" required="false"/>
</attributes>
<relationships>
<child name="package" type="Package"/>
</relationships>
</nodetype>
<nodetype name="Site">
<description>A service site</description>
<image>Site.png</image>
<attributes>
<attribute name="startuprank" required="false"/>
</attributes>
</nodetype>
</nodetypes>
<!--
Host Instances
-->
<nodes>
<node name="ubuntu" type="Host" tags="tomcat,simpleapp,qa">
<description>The ubuntu server</description>
<attributes>
<attribute name="hostname">ubuntu</attribute>
<attribute name="osArch">i386</attribute>
<attribute name="osFamily">unix</attribute>
<attribute name="osName">Linux</attribute>
<attribute name="osVersion">2.6.32-28-generic</attribute>
<attribute name="username">alexh</attribute>
<attribute name="port">18080</attribute>
<attribute name="basedir">/tmp/demo/tomcat</attribute>
<attribute name="appname">simpleapp</attribute>
<attribute name="service">tomcat</attribute>
<attribute name="environment">qa</attribute>
</attributes>
<children>
<child name="tomcat" type="Service"/>
</children>
<parents>
<parent name="qa" type="Site"/>
</parents>
</node>
<node name="tomcat" type="Service" tags="QA">
<description>The tomcat service</description>
<attributes>
<attribute name="basedir">/tmp/demo/tomcat</attribute>
<attribute name="startuprank">1</attribute>
<attribute name="controller">tomcat</attribute>
<attribute name="port">18080</attribute>
</attributes>
<children>
<child name="apache-tomcat-5.5.31" type="Package"/>
<child name="simple-1.0.0.war" type="Package"/>
</children>
</node>
<node name="qa" type="Site" tags="QA">
<description>The QA site</description>
<attributes>
<attribute name="startuprank">1</attribute>
</attributes>
</node>
<node name="apache-tomcat-5.5.31" type="Package" tags="tomcat">
<description>the tomcat container</description>
<attributes>
<attribute name="arch">no-arch</attribute>
<attribute name="base">apache-tomcat-5.5.31</attribute>
<attribute name="filename">apache-tomcat-5.5.31.zip</attribute>
<attribute name="filetype">zip</attribute>
<attribute name="installroot">/tmp/demo/tomcat</attribute>
<attribute name="installrank">1</attribute>
<attribute name="repoUrl">http://localhost/simpleapp/apache-tomcat-5.5.31.zip</attribute>
<attribute name="version">5.5.31</attribute>
<attribute name="controller">zip</attribute>
</attributes>
</node>
<node name="simple-1.0.0.war" type="Package" tags="tomcat">
<description>the simple webapp</description>
<attributes>
<attribute name="arch">no-arch</attribute>
<attribute name="base">simple</attribute>
<attribute name="filename">simple-1.0.0.war</attribute>
<attribute name="filetype">war</attribute>
<attribute name="installroot">/tmp/demo/tomcat/webapps</attribute>
<attribute name="installrank">1</attribute>
<attribute name="repoUrl">http://localhost/simpleapp/simple-1.0.0.war</attribute>
<attribute name="version">1.0.0</attribute>
<attribute name="controller">war</attribute>
</attributes>
</node>
</nodes>
</yana>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment