Clone haproxy resource across all peers & always restart haproxy on config changes.
This commit is contained in:
parent
9ffb92fe9b
commit
827ca55a80
|
@ -324,13 +324,13 @@ function ha_relation_joined() {
|
|||
init_services="{
|
||||
'res_glance_haproxy':'haproxy'
|
||||
}"
|
||||
groups="{
|
||||
'grp_glance_haproxy':'res_glance_vip res_glance_haproxy'
|
||||
clones="{
|
||||
'cl_glance_haproxy': 'res_glance_haproxy'
|
||||
}"
|
||||
relation-set corosync_bindiface=$corosync_bindiface \
|
||||
corosync_mcastport=$corosync_mcastport \
|
||||
resources="$resources" resource_params="$resource_params" \
|
||||
init_services="$init_services" groups="$groups"
|
||||
init_services="$init_services" clones="$clones"
|
||||
else
|
||||
juju-log "Insufficient configuration data to configure hacluster"
|
||||
exit 1
|
||||
|
|
|
@ -384,13 +384,7 @@ EOF
|
|||
done
|
||||
done
|
||||
echo "ENABLED=1" > $HAPROXY_DEFAULT
|
||||
if is_clustered ; then
|
||||
if is_leader ; then
|
||||
service haproxy restart
|
||||
fi
|
||||
else
|
||||
service haproxy restart
|
||||
fi
|
||||
service haproxy restart
|
||||
}
|
||||
|
||||
##########################################################################
|
||||
|
|
Loading…
Reference in New Issue