[FUNC] Ajouter la gestion de l'unicast
This commit is contained in:
parent
2ae07d3c35
commit
71b1fa12f8
@ -52,6 +52,12 @@ Adresse IPv6 de failover.
|
|||||||
|
|
||||||
*<span style="text-decoration: underline">Valeur par défaut:</span> aucune*
|
*<span style="text-decoration: underline">Valeur par défaut:</span> aucune*
|
||||||
|
|
||||||
|
### keepalived_peers
|
||||||
|
|
||||||
|
Passer en unicast en utilisant cette liste d'IP.
|
||||||
|
|
||||||
|
*<span style="text-decoration: underline">Valeur par défaut:</span> aucune*
|
||||||
|
|
||||||
### keepalived_track_scripts
|
### keepalived_track_scripts
|
||||||
|
|
||||||
Liste de script dont le code retour doit être à zéro pour que le membre conserve ou puisse prendre l'IP de failover.
|
Liste de script dont le code retour doit être à zéro pour que le membre conserve ou puisse prendre l'IP de failover.
|
||||||
|
@ -11,6 +11,8 @@ keepalived_mail_from: ""
|
|||||||
keepalived_ipv4: ""
|
keepalived_ipv4: ""
|
||||||
keepalived_ipv6: ""
|
keepalived_ipv6: ""
|
||||||
|
|
||||||
|
keepalived_peers: []
|
||||||
|
|
||||||
keepalived_track_scripts: []
|
keepalived_track_scripts: []
|
||||||
# Exemple:
|
# Exemple:
|
||||||
# - name: check_haproxy_8080
|
# - name: check_haproxy_8080
|
||||||
|
@ -40,6 +40,12 @@ vrrp_instance VIP_{{ keepalived_uid }} {
|
|||||||
virtual_router_id {{ keepalived_uid }}
|
virtual_router_id {{ keepalived_uid }}
|
||||||
advert_int 1
|
advert_int 1
|
||||||
|
|
||||||
|
{% if keepalived_peers | length > 0 %}
|
||||||
|
unicast_peer {
|
||||||
|
{{ keepalived_peers | join('\n') }}
|
||||||
|
}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{% if keepalived_ipv4 | length > 0 %}
|
{% if keepalived_ipv4 | length > 0 %}
|
||||||
virtual_ipaddress {
|
virtual_ipaddress {
|
||||||
{{ keepalived_ipv4 }} dev {{ keepalived_interface }} scope global
|
{{ keepalived_ipv4 }} dev {{ keepalived_interface }} scope global
|
||||||
|
Loading…
Reference in New Issue
Block a user