"Fossies" - the Fresh Open Source Software Archive

Member "pacemaker-Pacemaker-2.1.2/xml/test-2/010-rsc_colocation-dropped-for-noop-sa.xml" (24 Nov 2021, 2255 Bytes) of package /linux/misc/pacemaker-Pacemaker-2.1.2.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) XML source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 <?xml-stylesheet href="../assets/upgrade-2.10-htmldiff.xsl" type="text/xsl"?>
    2 <!--
    3  Contrieved example of how rsc_colocation/@score-attribute might have been used
    4 
    5  This was never implemented and, apparently, will not work.
    6  -->
    7 <cib validate-with="pacemaker-2.0" admin_epoch="0" epoch="0" num_updates="0">
    8   <configuration>
    9     <crm_config/>
   10     <nodes>
   11 
   12       <node id="virt-063" uname="virt-063">
   13         <instance_attributes id="virt-063-attrs">
   14           <nvpair id="virt-063-AddrHttpdTogether" name="AddrHttpdTogether" value="INFINITY"/>
   15         </instance_attributes>
   16       </node>
   17       <node id="virt-064" uname="virt-064">
   18         <instance_attributes id="virt-064-attrs">
   19           <nvpair id="virt-064-AddrHttpdTogether" name="AddrHttpdTogether" value="INFINITY"/>
   20         </instance_attributes>
   21       </node>
   22       <node id="virt-069" uname="virt-069">
   23         <instance_attributes id="virt-069-attrs">
   24           <!-- IPaddr2 won't work here, is DNS-load-balanced or something... -->
   25           <nvpair id="virt-069-AddrHttpdTogether" name="AddrHttpdTogether" value="-INFINITY"/>
   26         </instance_attributes>
   27       </node>
   28 
   29     </nodes>
   30     <resources>
   31 
   32       <primitive id="myAddr" class="ocf" provider="heartbeat" type="IPaddr2">
   33         <operations>
   34           <op id="myAddr-monitor" name="monitor" interval="30s"/>
   35         </operations>
   36         <instance_attributes id="myAddr-params">
   37           <nvpair id="myAddr-ip" name="ip" value="192.0.2.10"/>
   38         </instance_attributes>
   39       </primitive>
   40 
   41       <primitive id="myHttpd" class="ocf" provider="heartbeat" type="apache">
   42         <operations>
   43           <op id="myHttpd-monitor" name="monitor" interval="30s"/>
   44         </operations>
   45         <instance_attributes id="myHttpd-params">
   46           <nvpair id="myHttpd-configfile" name="configfile" value="/etc/httpd/conf/httpd.conf"/>
   47         </instance_attributes>
   48       </primitive>
   49 
   50     </resources>
   51     <constraints>
   52 
   53       <rsc_order id="order-addr-httpd" first="myAddr" then="myHttpd"/>
   54 
   55       <!-- this never worked like that -->
   56       <rsc_colocation id="colocation-addr-httpd" rsc="myHttpd" with-rsc="myAddr"
   57                       score-attribute="AddrHttpdTogether"/>
   58 
   59     </constraints>
   60   </configuration>
   61   <status/>
   62 </cib>