-
Notifications
You must be signed in to change notification settings - Fork 264
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1.2.8 add keepalived.conf, merge branch 'fix'
- Loading branch information
Showing
4 changed files
with
42 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/sh | ||
if [ -z "`pidof janusec`" ]; then | ||
exit 1 | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
global_defs { | ||
router_id janusec | ||
script_user root | ||
enable_script_security | ||
} | ||
|
||
vrrp_script check_pid { | ||
script "/usr/local/janusec/check_pid.sh" | ||
interval 5 | ||
} | ||
|
||
vrrp_instance VI_01 { | ||
state BACKUP | ||
interface eth0 | ||
virtual_router_id 101 | ||
|
||
# priority may be modified | ||
priority 100 | ||
|
||
nopreempt | ||
advert_int 1 | ||
|
||
virtual_ipaddress { | ||
# The virtual ip should be modified | ||
192.168.100.111 | ||
} | ||
|
||
track_script { | ||
check_pid | ||
} | ||
|
||
authentication { | ||
auth_type PASS | ||
auth_pass janusec | ||
} | ||
} |