Merge branch 'hotfix-0.1.5' into stable

This commit is contained in:
ofreax 2015-08-19 19:39:37 +02:00
commit fe6ead3889
5 changed files with 10 additions and 7 deletions

View File

@ -1,5 +1,8 @@
# Changelog # Changelog
## 0.1.5
- Upgrade baseimage: osixia/light-baseimage:0.1.1
## 0.1.4 ## 0.1.4
- Use light-baseimage - Use light-baseimage

View File

@ -1,5 +1,5 @@
NAME = osixia/keepalived NAME = osixia/keepalived
VERSION = 0.1.4 VERSION = 0.1.5
.PHONY: all build test tag_latest release .PHONY: all build test tag_latest release

View File

@ -1,4 +1,4 @@
FROM osixia/light-baseimage:0.1.0 FROM osixia/light-baseimage:0.1.1
MAINTAINER Bertrand Gouny <bertrand.gouny@osixia.net> MAINTAINER Bertrand Gouny <bertrand.gouny@osixia.net>
# Keepalived version # Keepalived version

View File

@ -1,7 +1,7 @@
KEEPALIVED_INTERFACE: eth0 KEEPALIVED_INTERFACE: eth0
KEEPALIVED_PASSWORD: d0cker KEEPALIVED_PASSWORD: d0cker
# for electing MASTER, highest priority wins. # For electing MASTER, highest priority wins.
# to be MASTER, make 50 more than other machines # to be MASTER, make 50 more than other machines
KEEPALIVED_PRIORITY: 150 KEEPALIVED_PRIORITY: 150

View File

@ -16,16 +16,16 @@ NAME=$2
STATE=$3 STATE=$3
case $STATE in case $STATE in
"MASTER") logger "I'm the MASTER! Whup whup." "MASTER") logger -s -t keepalived-notify "I'm the MASTER! Whup whup."
exit 0 exit 0
;; ;;
"BACKUP") logger "Ok, i'm just a backup, great." "BACKUP") logger -s -t keepalived-notify "Ok, i'm just a backup, great."
exit 0 exit 0
;; ;;
"FAULT") logger "Fault, what ?" "FAULT") logger -s -t keepalived-notify "Fault, what ?"
exit 0 exit 0
;; ;;
*) logger "Unknown state" *) logger -s -t keepalived-notify "Unknown state"
exit 1 exit 1
;; ;;
esac esac