[ClusterLabs] Openldap and freeradius question

Marcos Renato da Silva Junior marcosjr at dee.feis.unesp.br
Wed Oct 19 12:19:05 UTC 2016


Hi,


In my test environment, I'm using two Raspberry Pi :

rasp1 - openldap (syncrepl mirror mode) + freeradius

rasp2 - openldap (syncrepl mirror mode) + freeradius


So I configured Openldap resource and clone it for both nodes :

crm configure primitive slapd_mirrormode ocf:heartbeat:slapd params\
  slapd="/usr/sbin/slapd" \
  config="/etc/ldap/slapd.d/" \
  user="openldap" group="openldap" \
  services="ldap:///" \
  watch_suffix="dc=mrsj,dc=lab" \
  meta migration-threshold="3" \
  op monitor interval=10s

crm configure clone ldap_clone slapd_mirrormode



And configured Floating IP resource :

crm configure primitive virtual_ip ocf:heartbeat:IPaddr2 \
params ip="192.168.0.8" nic="eth0" cidr_netmask="24" \
op monitor interval="10s" timeout="20s"

crm configure colocation virtual_ip_with_slapd inf: virtual_ip ldap_clone

crm configure order virtual_ip_before_slapd inf: virtual_ip ldap_clone

crm configure location prefer_rasp1 virtual_ip 50: rasp1



At this point :

if Openldap service on rasp1 fail, the Floating IP change to rasp2
if rasp1 fail, the Floating IP change to rasp2
if Freeradius service fail on rasp1, the Floating IP still in rasp1.



So my question is about the best way to add Freeradius resource to this 
environment.

I think something like, but not sure it is correct:

crm configure primitive freeradius lsb:freeradius meta 
migration-threshold="3" op monitor interval=10s

crm configure clone freeradius_clone freeradius

crm configure colocation virtual_ip_with_freeradius inf: virtual_ip 
freeradius_clone

crm configure order virtual_ip_before_freeradius inf: virtual_ip 
freeradius_clone



Thanks,

-- 
Marcos Renato da Silva Junior
Universidade Estadual Paulista - Unesp
Faculdade de Engenharia de Ilha Solteira - FEIS
Departamento de Engenharia Elétrica
15385-000 - Ilha Solteira/SP
(18) 3743-1164





More information about the Users mailing list