summaryrefslogtreecommitdiffstats
path: root/doc/sync/keepalived.conf
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2008-08-02 18:51:34 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2008-08-02 18:51:34 +0200
commitc403246424350bae14a30fc6a115608ca15f2aa1 (patch)
tree7382050467492a959389d13f5972ca6966304c2b /doc/sync/keepalived.conf
parent03f7de56efc6747eb6b4895c03aa2efaaed80efe (diff)
script: rework scripts that enable interaction with keepalived
This patch reworks the documentation section. It removes the replicated keepalived.conf files and merge all the scripts into one to reduce confusion and improve maintainability. It's likely that the documentation directory will suffer more restructurations in the near future. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'doc/sync/keepalived.conf')
-rw-r--r--doc/sync/keepalived.conf42
1 files changed, 42 insertions, 0 deletions
diff --git a/doc/sync/keepalived.conf b/doc/sync/keepalived.conf
new file mode 100644
index 0000000..b7638a7
--- /dev/null
+++ b/doc/sync/keepalived.conf
@@ -0,0 +1,42 @@
+#
+# Simple script for primary-backup setups
+#
+
+vrrp_sync_group G1 { # must be before vrrp_instance declaration
+ group {
+ VI_1
+ VI_2
+ }
+ notify_master /etc/conntrackd/primary-backup.sh
+ notify_backup /etc/conntrackd/primary-backup.sh
+}
+
+vrrp_instance VI_1 {
+ interface eth1
+ state SLAVE
+ virtual_router_id 61
+ priority 80
+ advert_int 3
+ authentication {
+ auth_type PASS
+ auth_pass papas_con_tomate
+ }
+ virtual_ipaddress {
+ 192.168.0.100 # default CIDR mask is /32
+ }
+}
+
+vrrp_instance VI_2 {
+ interface eth0
+ state SLAVE
+ virtual_router_id 62
+ priority 80
+ advert_int 3
+ authentication {
+ auth_type PASS
+ auth_pass papas_con_tomate
+ }
+ virtual_ipaddress {
+ 192.168.1.100
+ }
+}