Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Refactor resource model definition

#114

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.

Reported by Greg Schueler · December 6th, 2010 @ 11:26 AM

State: resolved
Milestone: Rundeck 1.3
Assigned to: Greg Schueler Greg Schueler

Activity

  1. Alex-SF
    Alex-SF

    Can we just begin by cutting down the existing project.dtd to just node and setting tags?

    December 17th, 2010 @ 08:41 AM

  2. Deleted User
    Deleted User

    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?

    December 17th, 2010 @ 10:47 AM

  3. Greg Schueler
  4. Alex-SF
    Alex-SF

    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.

    December 17th, 2010 @ 11:02 AM

  5. Greg Schueler
    Greg Schueler

    we can use dtd declaration for our own generated xml, but not require it on
    input

    December 17th, 2010 @ 11:05 AM

  6. Deleted User
    Deleted User
    • 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.

    December 17th, 2010 @ 01:55 PM

  7. Alex-SF
    Alex-SF
    • Milestone cleared.
    • Milestone order changed from 11 to 0

    December 29th, 2010 @ 05:50 PM

  8. Alex-SF
    Alex-SF
    • Milestone set to Rundeck 1.2
    • Milestone order changed from 18 to 0

    January 14th, 2011 @ 07:28 AM

  9. Alex-SF
    Alex-SF
    • Title changed from Refactor resources.xml model to Refactor resource model definition

    January 14th, 2011 @ 12:10 PM

  10. Alex-SF
    Alex-SF
    • Milestone cleared.
    • Milestone order changed from 1 to 0

    February 1st, 2011 @ 11:45 AM

  11. Alex-SF
    Alex-SF
    • 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>
    

    March 17th, 2011 @ 02:55 PM

  12. Deleted User
  13. Greg Schueler
    Greg Schueler

    My yaml thought is just to allow arbitrary entries in the data map:

    mynode:
      name: mynode
      hostname: blah
      arbitrary: value
    

    March 17th, 2011 @ 02:58 PM

  14. Greg Schueler
    Greg Schueler
    • Assigned user set to Greg Schueler

    March 17th, 2011 @ 02:59 PM

  15. Greg Schueler
    Greg Schueler
    • State changed from new to open

    March 17th, 2011 @ 02:59 PM

  16. Greg Schueler
    Greg Schueler

    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>
    

    March 18th, 2011 @ 10:26 AM

  17. Deleted User
  18. Deleted User
  19. Greg Schueler
    Greg Schueler
    • State changed from open to resolved

    April 21st, 2011 @ 03:09 PM

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.