# Example cluster LDIF file
# Christine Caulfield <ccaulfie@redhat.com>
#
# You WILL need to change this to suit your needs, in particular a search
# and replace of dc=chrissie,dc=net with your own domanin name.
#
# Load with:
#  ldapmodify -x -a -D"cn=Directory Manager" -f example.ldif -c -v -W
#
#
# What follows is the LDAP equivalent of the following cluster.conf file:
#
#<totem token="21000"/>
#
#<cluster config_version="1"  name="cc_cluster">
#  <cman cluster_id="444"/>
#
#  <fencedevices>
#        <fencedevice name="myapc"
#            password="apc"
#            username="apc"
#            ipaddr="myapc.chrissie.net"
#            agent="fence_apc"
#        </fencedevice>
#  </fencedevice>
#  <clusternodes>
#    <clusternode name="ford"
#                 votes="1"
#            	  nodeid="32">
#		  <fence>
#                    <method name="apc">
# 		       <device name="myapc" port="4"/>
#		     </method>
#                 </fence>
#    </clusternode>
#
#    <clusternode name="arthur"
#                 votes="1"
#            	  nodeid="10">
#    </clusternode>
#
#    <clusternode name="jeltz"
#                 votes="2"
#            	  nodeid="1">
#    </clusternode>
#  </clusternodes>
#</cluster>
#
#

dn: cn=cluster,dc=chrissie,dc=net
cn: cluster
objectClass: rhcsCluster
name: cc_cluster
rhcsConfig-version: 1

# Some cman parameters
dn: cn=cman,cn=cluster,dc=chrissie,dc=net
cn: cman
objectClass: rhcsCman
rhcsCluster-id: 444

# Some totem parameters
dn: cn=totem,cn=cluster,dc=chrissie,dc=net
cn: totem
objectClass: rhcsTotem
rhcsToken: 21000

# Define nodes
dn: cn=clusternodes,cn=cluster,dc=chrissie,dc=net
cn: clusternodes
objectClass: nsContainer


dn: cn=clusternode,cn=clusternodes,cn=cluster,dc=chrissie,dc=net
cn: clusternode
objectClass: nsContainer


dn: name=jeltz,cn=clusternode,cn=clusternodes,cn=cluster,dc=chrissie,dc=net
objectClass: rhcsNode
name: jeltz
rhcsNodeid: 1
rhcsVotes: 2

# Define a fence agent for this node ...!
dn: cn=fence,name=jeltz,cn=clusternode,cn=clusternodes,cn=cluster,dc=chrissie,dc=net
cn: fence
objectclass: nsContainer

dn: cn=method,cn=fence,name=jeltz,cn=clusternode,cn=clusternodes,cn=cluster,dc=chrissie,dc=net
cn: method
objectclass: nsContainer

dn: name=apc,cn=method,cn=fence,name=jeltz,cn=clusternode,cn=clusternodes,cn=cluster,dc=chrissie,dc=net
name: apc
objectclass: rhcsFenceMethod

dn: cn=device,name=apc,cn=method,cn=fence,name=jeltz,cn=clusternode,cn=clusternodes,cn=cluster,dc=chrissie,dc=net
cn: device
objectclass: nsContainer

dn: name=myapc,cn=device,name=apc,cn=method,cn=fence,name=jeltz,cn=clusternode,cn=clusternodes,cn=cluster,dc=chrissie,dc=net
name: myapc
objectclass: rhcsFenceAgent
rhcsPort: 4

dn: name=arthur,cn=clusternode,cn=clusternodes,cn=cluster,dc=chrissie,dc=net
objectClass: rhcsNode
name: arthur
rhcsNodeid: 10
rhcsVotes: 1

dn: name=ford,cn=clusternode,cn=clusternodes,cn=cluster,dc=chrissie,dc=net
objectClass: rhcsNode
name: ford
rhcsNodeid: 32
rhcsVotes: 1

# Fence agent

dn: cn=fencedevices,cn=cluster,dc=chrissie,dc=net
cn: fencedevices
objectClass: nsContainer

dn: cn=fencedevice,cn=fencedevices,cn=cluster,dc=chrissie,dc=net
cn: fencedevice
objectClass: nsContainer


dn: name=myapc,cn=fencedevice,cn=fencedevices,cn=cluster,dc=chrissie,dc=net
objectClass: rhcsFencedevice
name: myapc
rhcsAgent: fence_apc
rhcsIpaddr: myapc.chrissie.net
rhcsUsername: apc
rhcsPassword: apc
