Merge branch 'hotfix-0.1.2' into stable
This commit is contained in:
commit
f72f907397
|
@ -1,5 +1,10 @@
|
||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## 0.1.2
|
||||||
|
- Keepalived version 1.2.19
|
||||||
|
- Update default config :
|
||||||
|
- Set start state to BACKUP
|
||||||
|
|
||||||
## 0.1.1
|
## 0.1.1
|
||||||
- Add notify script
|
- Add notify script
|
||||||
|
|
||||||
|
|
2
Makefile
2
Makefile
|
@ -1,5 +1,5 @@
|
||||||
NAME = osixia/keepalived
|
NAME = osixia/keepalived
|
||||||
VERSION = 0.1.1
|
VERSION = 0.1.2
|
||||||
|
|
||||||
.PHONY: all build test tag_latest release
|
.PHONY: all build test tag_latest release
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@ FROM osixia/baseimage:0.10.4
|
||||||
MAINTAINER Bertrand Gouny <bertrand.gouny@osixia.net>
|
MAINTAINER Bertrand Gouny <bertrand.gouny@osixia.net>
|
||||||
|
|
||||||
# Keepalived version
|
# Keepalived version
|
||||||
ENV KEEPALIVED_VERSION 1.2.17
|
ENV KEEPALIVED_VERSION 1.2.19
|
||||||
|
|
||||||
# Use baseimage-docker's init system.
|
# Use baseimage-docker's init system.
|
||||||
CMD ["/sbin/my_init"]
|
CMD ["/sbin/my_init"]
|
||||||
|
@ -10,7 +10,7 @@ CMD ["/sbin/my_init"]
|
||||||
# Install Keepalived
|
# Install Keepalived
|
||||||
RUN apt-get -y update \
|
RUN apt-get -y update \
|
||||||
&& LC_ALL=C DEBIAN_FRONTEND=noninteractive apt-get install -y \
|
&& LC_ALL=C DEBIAN_FRONTEND=noninteractive apt-get install -y \
|
||||||
make gcc libssl-dev \
|
make gcc pkg-config libssl-dev libnl-dev \
|
||||||
&& curl -o keepalived.tar.gz -SL http://keepalived.org/software/keepalived-${KEEPALIVED_VERSION}.tar.gz \
|
&& curl -o keepalived.tar.gz -SL http://keepalived.org/software/keepalived-${KEEPALIVED_VERSION}.tar.gz \
|
||||||
&& mkdir -p /osixia/keepalived-sources \
|
&& mkdir -p /osixia/keepalived-sources \
|
||||||
&& tar -xzf keepalived.tar.gz --strip 1 -C /osixia/keepalived-sources \
|
&& tar -xzf keepalived.tar.gz --strip 1 -C /osixia/keepalived-sources \
|
||||||
|
@ -18,7 +18,7 @@ RUN apt-get -y update \
|
||||||
&& ./configure --with-kernel-dir=/lib/modules/$(uname -r)/build \
|
&& ./configure --with-kernel-dir=/lib/modules/$(uname -r)/build \
|
||||||
&& make && make install \
|
&& make && make install \
|
||||||
&& cd - && mkdir -p /etc/keepalived \
|
&& cd - && mkdir -p /etc/keepalived \
|
||||||
&& apt-get remove -y --purge --auto-remove make gcc libssl-dev
|
&& apt-get remove -y --purge --auto-remove make gcc pkg-config libssl-dev libnl-dev
|
||||||
|
|
||||||
# Add Keepalived assets
|
# Add Keepalived assets
|
||||||
ADD service/keepalived/assets /osixia/keepalived
|
ADD service/keepalived/assets /osixia/keepalived
|
||||||
|
|
|
@ -13,7 +13,7 @@ vrrp_instance VI_1 {
|
||||||
{{ keepalived_interface }}
|
{{ keepalived_interface }}
|
||||||
}
|
}
|
||||||
|
|
||||||
state MASTER
|
state BACKUP
|
||||||
virtual_router_id 51
|
virtual_router_id 51
|
||||||
priority {{ keepalived_priority }}
|
priority {{ keepalived_priority }}
|
||||||
nopreempt
|
nopreempt
|
||||||
|
|
Loading…
Reference in New Issue