/usr/share/crmsh/tests/unittests/schemas/pacemaker-1.2.rng is in crmsh 2.2.0-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 | <?xml version="1.0" encoding="UTF-8"?>
<!-- types: http://www.w3.org/TR/xmlschema-2/#dateTime -->
<grammar xmlns="http://relaxng.org/ns/structure/1.0"
datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
<start>
<element name="cib">
<ref name="element-cib"/>
</element>
</start>
<define name="element-cib">
<ref name="attribute-options"/>
<element name="configuration">
<interleave>
<element name="crm_config">
<zeroOrMore>
<element name="cluster_property_set">
<externalRef href="nvset.rng"/>
</element>
</zeroOrMore>
</element>
<optional>
<element name="rsc_defaults">
<zeroOrMore>
<element name="meta_attributes">
<externalRef href="nvset.rng"/>
</element>
</zeroOrMore>
</element>
</optional>
<optional>
<element name="op_defaults">
<zeroOrMore>
<element name="meta_attributes">
<externalRef href="nvset.rng"/>
</element>
</zeroOrMore>
</element>
</optional>
<ref name="element-nodes"/>
<element name="resources">
<externalRef href="resources-1.2.rng"/>
</element>
<element name="constraints">
<externalRef href="constraints-1.2.rng"/>
</element>
<optional>
<externalRef href="acls-1.2.rng"/>
</optional>
<optional>
<externalRef href="fencing.rng"/>
</optional>
</interleave>
</element>
<element name="status">
<ref name="element-status"/>
</element>
</define>
<define name="attribute-options">
<externalRef href="versions.rng"/>
<optional>
<attribute name="crm_feature_set"><text/></attribute>
</optional>
<optional>
<attribute name="remote-tls-port"><data type="nonNegativeInteger"/></attribute>
</optional>
<optional>
<attribute name="remote-clear-port"><data type="nonNegativeInteger"/></attribute>
</optional>
<optional>
<attribute name="have-quorum"><data type="boolean"/></attribute>
</optional>
<optional>
<attribute name="dc-uuid"><text/></attribute>
</optional>
<optional>
<attribute name="cib-last-written"><text/></attribute>
</optional>
<optional>
<attribute name="no-quorum-panic"><data type="boolean"/></attribute>
</optional>
<optional>
<attribute name="update-origin"><text/></attribute>
</optional>
<optional>
<attribute name="update-client"><text/></attribute>
</optional>
<optional>
<attribute name="update-user"><text/></attribute>
</optional>
</define>
<define name="element-nodes">
<element name="nodes">
<zeroOrMore>
<element name="node">
<attribute name="id"><text/></attribute>
<attribute name="uname"><text/></attribute>
<optional>
<attribute name="type">
<choice>
<value>normal</value>
<value>member</value>
<value>ping</value>
</choice>
</attribute>
</optional>
<optional>
<attribute name="description"><text/></attribute>
</optional>
<optional>
<externalRef href="score.rng"/>
</optional>
<zeroOrMore>
<choice>
<element name="instance_attributes">
<externalRef href="nvset.rng"/>
</element>
<element name="utilization">
<externalRef href="nvset.rng"/>
</element>
</choice>
</zeroOrMore>
</element>
</zeroOrMore>
</element>
</define>
<define name="element-status">
<zeroOrMore>
<choice>
<attribute>
<anyName/>
<text/>
</attribute>
<element>
<anyName/>
<ref name="element-status"/>
</element>
<text/>
</choice>
</zeroOrMore>
</define>
</grammar>
|