Page Menu
Home
ClusterLabs Projects
Search
Configure Global Search
Log In
Files
F3153123
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
7 KB
Referenced Files
None
Subscribers
None
View Options
diff --git a/ra/next/ra-api.ng b/ra/next/ra-api.ng
index 0aa077e..050d545 100644
--- a/ra/next/ra-api.ng
+++ b/ra/next/ra-api.ng
@@ -1,124 +1,127 @@
<?xml version="1.0" encoding="utf-8"?>
<grammar xmlns="http://relaxng.org/ns/structure/1.0">
<start><element name="resource-agent">
<attribute name="name" />
<optional><attribute name="version" /></optional>
<element name="version"> <text /> </element>
<zeroOrMore><element name="longdesc">
<ref name="description" />
</element></zeroOrMore>
<zeroOrMore><element name="shortdesc">
<ref name="description" />
</element></zeroOrMore>
<element name="parameters"> <oneOrMore>
<element name="parameter">
<attribute name="name" />
<optional>
<attribute name="unique"> <ref name="boolean-values" /> </attribute>
</optional>
+ <optional>
+ <attribute name="required"> <ref name="boolean-values" /> </attribute>
+ </optional>
<oneOrMore> <element name="longdesc">
<ref name="description" />
</element> </oneOrMore>
<oneOrMore> <element name="shortdesc">
<ref name="description" />
</element> </oneOrMore>
<element name="content">
<choice>
<attribute name="type">
<choice>
<value>boolean</value>
<value>string</value>
<value>integer</value>
</choice>
</attribute>
<group>
<attribute name="type">
<value>select</value>
</attribute>
<oneOrMore>
<element name="option">
<attribute name="value" />
</element>
</oneOrMore>
</group>
</choice>
<optional>
<attribute name="default"> <text /> </attribute>
</optional>
</element>
</element>
</oneOrMore> </element>
<element name="actions"> <oneOrMore>
<element name="action">
<attribute name="name">
<choice>
<value>start</value>
<value>stop</value>
<value>recover</value>
<value>status</value>
<value>reload</value>
<value>meta-data</value>
<value>verify-all</value>
</choice>
</attribute>
<attribute name="timeout" />
<optional><attribute name="interval" /></optional>
<optional><attribute name="start-delay" /></optional>
<optional><attribute name="depth" /></optional>
</element>
</oneOrMore> </element>
<element name="special">
<attribute name="tag" />
<ref name="anyElement" />
</element>
</element></start>
<define name="boolean-values">
<choice>
<value>0</value>
<value>1</value>
</choice>
</define>
<define name="description">
<attribute name="lang" />
<ref name="anyElement" />
</define>
<define name="any">
<zeroOrMore>
<choice>
<attribute>
<anyName/>
</attribute>
<text/>
<element>
<anyName/>
<ref name="any" />
</element>
</choice>
</zeroOrMore>
</define>
<define name="anyElement">
<zeroOrMore>
<choice>
<text/>
<element>
<anyName/>
<ref name="any" />
</element>
</choice>
</zeroOrMore>
</define>
</grammar>
diff --git a/ra/next/ra-metadata-example.xml b/ra/next/ra-metadata-example.xml
index 394f50c..221ccbc 100644
--- a/ra/next/ra-metadata-example.xml
+++ b/ra/next/ra-metadata-example.xml
@@ -1,120 +1,120 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Root element: give the name of the Resource agent -->
<resource-agent name="Filesystem" version="FailSafe 1.0.4">
<!-- Version number of the standard this complies with -->
<version>1.0</version>
<longdesc lang="en">
Filesystem <b>matters</b>.
</longdesc>
<!-- List all the instance parameters the RA supports or requires. -->
<parameters>
<!-- Note that parameters flagged with 'unique' must be unique; ie no
other resource instance of this resource type may have the same set
of unique parameters.
-->
-<parameter name="Mountpoint" unique="1">
+<parameter name="Mountpoint" unique="1" required="0">
<!-- This is the long, helpful description of what the parameter is all
about. A user interface might display it to the user if he asks for
elaborate help with an option, and it would obviously also provide
examples etc.
You can have multiple ones with different "lang" attributes, but this is
not required.
-->
<longdesc lang="en">
The resource name is the directory where the filesystem will be actually
mounted. Please make sure it exists.
</longdesc>
<!-- The shortdesc may be displayed by the resource manager as a tooltip or
equivalent -->
<shortdesc lang="en">Mountpoint</shortdesc>
<!-- Further definition of the content -->
<content type="string" default="/mnt" />
</parameter>
<parameter name="Device" unique="1">
<longdesc lang="en">
When mounting a filesystem on a specific mountpoint, you have to specify which
device should be mounted; this will usually be similiar to /dev/sda1 or
/dev/volumegroup/logicalvolume when using LVM.
</longdesc>
<shortdesc lang="en">Device to be mounted</shortdesc>
<content type="string" default="/dev/"/>
</parameter>
<parameter name="FSType">
<longdesc lang="en">
You should chose a journaled filesystem for the shared storage to ensure that
the filesystem remains consistent and that it can be mounted without an
expensive fsck run; recommendations include reiserfs, ext3 and XFS.
</longdesc>
<shortdesc lang="en">Type of the filesystem</shortdesc>
<content type="string" default="reiserfs"/>
</parameter>
<parameter name="mount_options">
<longdesc lang="en">
The mount options used for mounting a filesystem; normally this is set to
defaults, but you may want to modify this if you require a read-only
mount or something similar.
</longdesc>
<shortdesc lang="en">Mount options for this filesystem</shortdesc>
<content type="string" default="defaults" />
</parameter>
<parameter name="fstype">
<longdesc lang="en">
The fstype options is used to specify file system type.
</longdesc>
<shortdesc lang="en">Filesystem type</shortdesc>
<content type="select" default="ext3">
<option value="ext3" />
<option value="ext4" />
</content>
</parameter>
</parameters>
<!-- List the actions supported by the RA -->
<actions>
<!-- Valid actions: start, stop, recover, status, reload, verify-all
The timeout is given in seconds (or s, m, h, d postfix and their
usual meanings) and should be a reasonable _hint_ to the RM how
long a certain action might take in the worst case.
-->
<action name="start" timeout="2m30s" />
<action name="stop" timeout="100" />
<action name="recover" timeout="150" />
<!-- In what intervals the RM should poll the RA for status; and how early
after the start of the RA is should start. Again, this are just
_defaults_ and can be overridden by the RM. -->
<action name="status" depth="0" timeout="20" interval="10" start-delay="1m" />
<action name="status" depth="10" timeout="60" interval="1h" start-delay="5m" />
<action name="status" depth="20" timeout="2m" interval="1d" start-delay="1d" />
<action name="reload" timeout="60" />
<action name="meta-data" timeout="5" />
<!-- As with all not mandatory actions, this one is only listed if supported
-->
<action name="verify-all" timeout="30" />
</actions>
<!-- Vendor specific attributes; as the content _inside_ the special tag is
obviously not covered by the RA-API DTD, it will not validate, but oh
well...
-->
<special tag="FailSafe">
<Ordering>403</Ordering>
</special>
</resource-agent>
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Tue, Feb 25, 10:37 AM (1 d, 16 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1464790
Default Alt Text
(7 KB)
Attached To
Mode
rO OCF-spec
Attached
Detach File
Event Timeline
Log In to Comment