Refactor resource model definition
Reported by Greg Schueler | 2010-12-06 11:26:45 UTC | 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 2010-12-17 08:41:28 UTC
Can we just begin by cutting down the existing project.dtd to just node and setting tags?
-

Deleted User 2010-12-17 10:47:11 UTC
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 2010-12-17 11:02:14 UTC
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 2010-12-17 11:05:23 UTC
we can use dtd declaration for our own generated xml, but not require it on
input -

Deleted User 2010-12-17 13:55:02 UTC
- 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 2010-12-29 17:50:35 UTC
- Milestone cleared.
- Milestone order changed from 11 to 0
-

Alex-SF 2011-01-14 07:28:38 UTC
- Milestone set to Rundeck 1.2
- Milestone order changed from 18 to 0
-

Alex-SF 2011-01-14 12:10:04 UTC
- Title changed from Refactor resources.xml model to Refactor resource model definition
-

Alex-SF 2011-02-01 11:45:59 UTC
- Milestone cleared.
- Milestone order changed from 1 to 0
-

Alex-SF 2011-03-17 14:55:23 UTC
- 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 2011-03-17 14:58:06 UTC
My yaml thought is just to allow arbitrary entries in the data map:
mynode: name: mynode hostname: blah arbitrary: value -

Greg Schueler 2011-03-17 14:59:02 UTC
- Assigned user set to Greg Schueler
-

Greg Schueler 2011-03-17 14:59:34 UTC
- State changed from new to open
-

Greg Schueler 2011-03-18 10:26:07 UTC
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 2011-03-21 11:14:13 UTC
(from [5c5508dc5a0d6bae94c5b2b0dd780ac854028592]) Refactor node/resources to add attributes [#114] https://github.com/dtolabs/rundeck/commit/5c5508dc5a0d6bae94c5b2b0d...
-

Deleted User 2011-03-21 12:07:59 UTC
(from [163e4d06710f6bd15dc236cb1f250786dec1f6dd]) Update documentation for resources v1.3 [#114] https://github.com/dtolabs/rundeck/commit/163e4d06710f6bd15dc236cb1...
-

Greg Schueler 2011-04-21 15:09:36 UTC
- 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 ...