Refactor resource model definition
Reported by Greg Schueler | December 6th, 2010 @ 11:26 AM | in Rundeck 1.3 (closed)
Resource definition needs to be refactored to remove old ctier concepts: type, Settings, other resource orders.
Settings/Attributes for nodes should be refactored into simple key/value pairs.
Comments and changes to this ticket
-
Alex-SF December 17th, 2010 @ 08:41 AM
Can we just begin by cutting down the existing project.dtd to just node and setting tags?
-
Deleted User December 17th, 2010 @ 10:47 AM
Is it possible to drop the DTD all together, or at least not make it a requirement of existing in the document when it's read by RunDeck? It can be optional. If it's present then use it?
-
Alex-SF December 17th, 2010 @ 11:02 AM
I'm all for dumping the DTD decl for the resources.xml doc. Not sure if that will have an annoying consequence elsewhere in the code base.
-
Greg Schueler December 17th, 2010 @ 11:05 AM
we can use dtd declaration for our own generated xml, but not require it on
input -
Deleted User December 17th, 2010 @ 01:55 PM
- Milestone order changed from 15 to 0
I like that option...
If there is an error and we suspect that it's format related, we can urge them validate their documents using the DTD.
-
Alex-SF December 29th, 2010 @ 05:50 PM
- Milestone cleared.
- Milestone order changed from 11 to 0
-
Alex-SF January 14th, 2011 @ 07:28 AM
- Milestone set to Rundeck 1.2
- Milestone order changed from 18 to 0
-
Alex-SF January 14th, 2011 @ 12:10 PM
- Title changed from Refactor resources.xml model to Refactor resource model definition
-
Alex-SF February 1st, 2011 @ 11:45 AM
- Milestone cleared.
- Milestone order changed from 1 to 0
-
Alex-SF March 17th, 2011 @ 02:55 PM
- Milestone set to Rundeck 1.3
- Milestone order changed from 29 to 0
User defined metadata could be defined in an "attributes" sub element. Eg
<node name="mynode"> <attributes attr1="val1" ... attrN="valN" /> </node>
A more verbose method could be
<node name="mynode"> <attribute name="attr1" value="val1" /> </node>
-
Greg Schueler March 17th, 2011 @ 02:58 PM
My yaml thought is just to allow arbitrary entries in the data map:
mynode: name: mynode hostname: blah arbitrary: value
-
Greg Schueler March 17th, 2011 @ 02:59 PM
- Assigned user set to Greg Schueler
-
Greg Schueler March 17th, 2011 @ 02:59 PM
- State changed from new to open
-
Greg Schueler March 18th, 2011 @ 10:26 AM
other options for the xml format. i will implement all of these to provide some variety in input syntax:
<node name="mynode"> <attribute name="attr1">value</attribute> </node>
and
<node name="mynode" attr1="value"> </node>
-
Deleted User March 21st, 2011 @ 11:14 AM
(from [5c5508dc5a0d6bae94c5b2b0dd780ac854028592]) Refactor node/resources to add attributes [#114] https://github.com/dtolabs/rundeck/commit/5c5508dc5a0d6bae94c5b2b0d...
-
Deleted User March 21st, 2011 @ 12:07 PM
(from [163e4d06710f6bd15dc236cb1f250786dec1f6dd]) Update documentation for resources v1.3 [#114] https://github.com/dtolabs/rundeck/commit/163e4d06710f6bd15dc236cb1...
-
Greg Schueler April 21st, 2011 @ 03:09 PM
- State changed from open to resolved
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
(DEPRECATED) Please use github issues for issue tracking at http://github.com/dtolabs/rundeck/issues
People watching this ticket
Tags
Referenced by
- 34 Add node state attribute to resource model definition node attributes are available to any node executor/file c...
- 114 Refactor resource model definition (from [5c5508dc5a0d6bae94c5b2b0dd780ac854028592]) Refacto...
- 114 Refactor resource model definition (from [163e4d06710f6bd15dc236cb1f250786dec1f6dd]) Update ...