Hi,

On Thu, May 08, 2008 at 10:33:50AM -0500, Matt Zagrabelny wrote:
> Greetings,
> 
> I have written a STONITH resource agent and am seeking clarification on
> the following parameter attributes:
> 
> required and default
> 
> Specifically, I would like to be ensured that there are some variables
> defined (and set to sensible defaults) and still allow people to
> override them, but not require them to.
> 
> In the following xml snippet, does the STONITH subsystem use the
> 'default="3"' to seed the environment variable for later use in the
> actual code?

No. The XML so far serves only as documentation. Though it is
read and parsed.

> <parameter name="reboot_sleep_delay" unique="0" required="0">
> <content type="string" default="3" />
> <shortdesc lang="en">
> Sleep delay between turning the outlet(s) off and back on.
> </shortdesc>
> <longdesc lang="en">
> Sleep delay in seconds between turning the outlet(s) off and back on.
> </longdesc>
> </parameter>
> 
> I suppose I am asking the following:
> 
> Do I need to define the default for a parameter in two places, once in
> the xml and once in the actual code?

Yes, it has to be both in the code and in the meta-data.

Thanks,

Dejan

> Thanks,
> 
> -- 
> Matt Zagrabelny - [EMAIL PROTECTED] - (218) 726 8844
> University of Minnesota Duluth
> Information Technology Systems & Services
> PGP key 1024D/84E22DA2 2005-11-07
> Fingerprint: 78F9 18B3 EF58 56F5 FC85  C5CA 53E7 887F 84E2 2DA2
> 
> He is not a fool who gives up what he cannot keep to gain what he cannot
> lose.
> -Jim Elliot



> _______________________________________________
> Linux-HA mailing list
> [email protected]
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to