Merge branch 'add-ha' of https://dev-eole.ac-dijon.fr/git/eole-one-master into add-ha
This commit is contained in:
commit
ecb6441aef
@ -7,6 +7,7 @@
|
|||||||
<file filelist='onesinglenode' name='/etc/one/sched.conf' rm='True'/>
|
<file filelist='onesinglenode' name='/etc/one/sched.conf' rm='True'/>
|
||||||
<file filelist='onesinglenode' name='/var/lib/one/remotes/etc/vnm/OpenNebulaNetwork.conf' rm='True' mkdir='True'/>
|
<file filelist='onesinglenode' name='/var/lib/one/remotes/etc/vnm/OpenNebulaNetwork.conf' rm='True' mkdir='True'/>
|
||||||
<file filelist='onesinglenode' name='/etc/one/auth/ldap_auth.conf'/>
|
<file filelist='onesinglenode' name='/etc/one/auth/ldap_auth.conf'/>
|
||||||
|
<file filelist='one_ha' name='/usr/share/eole/bastion/data/60-one' mode='755'/>
|
||||||
|
|
||||||
<service>opennebula</service>
|
<service>opennebula</service>
|
||||||
<service>opennebula-scheduler</service>
|
<service>opennebula-scheduler</service>
|
||||||
@ -233,6 +234,7 @@
|
|||||||
<target type='variable'>one_vip</target>
|
<target type='variable'>one_vip</target>
|
||||||
<target type='variable'>one_vip_mask</target>
|
<target type='variable'>one_vip_mask</target>
|
||||||
<target type='service_accesslist'>sunstone_xmlrpc</target>
|
<target type='service_accesslist'>sunstone_xmlrpc</target>
|
||||||
|
<target type='filelist'>one_ha</target>
|
||||||
</condition>
|
</condition>
|
||||||
|
|
||||||
<fill name='calc_val' target='one_vip_mask'>
|
<fill name='calc_val' target='one_vip_mask'>
|
||||||
|
@ -201,7 +201,6 @@ for host in ${HAPY_SLV}; do
|
|||||||
|
|
||||||
EchoVert " * Enregistrement du noeud"
|
EchoVert " * Enregistrement du noeud"
|
||||||
register_node ${host}
|
register_node ${host}
|
||||||
# wait_node_ok ${host}
|
|
||||||
if [[ ${HAPY_HA} == "oui" ]]
|
if [[ ${HAPY_HA} == "oui" ]]
|
||||||
then
|
then
|
||||||
if [[ $DBMODE == "sqlite" ]]
|
if [[ $DBMODE == "sqlite" ]]
|
||||||
@ -213,11 +212,13 @@ for host in ${HAPY_SLV}; do
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
sync_nodes
|
sync_nodes
|
||||||
|
if [[ ${HAPY_HA} != "oui" ]]
|
||||||
wait_node_ok ${HAPY_SLV[${i}]}
|
wait_node_ok ${HAPY_SLV[${i}]}
|
||||||
if [[ ${?} -ne 0 ]]
|
if [[ ${?} -ne 0 ]]
|
||||||
then
|
then
|
||||||
EchoRouge "Erreur lors de l'enregistrement du noeud ${HAPY_SLV[${i}]} !"
|
EchoRouge "Erreur lors de l'enregistrement du noeud ${HAPY_SLV[${i}]} !"
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
if [ $master = 0 ]; then
|
if [ $master = 0 ]; then
|
||||||
|
5
tmpl/60-one
Normal file
5
tmpl/60-one
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
%for %%host in %%one_nodes
|
||||||
|
/sbin/iptables -A eth%%{one_node_int}-root -s %%host -p tcp --syn -j ACCEPT
|
||||||
|
%end for
|
Loading…
Reference in New Issue
Block a user