Add the BACKUP as a dynamic configuration

Project: http://git-wip-us.apache.org/repos/asf/stratos/repo
Commit: http://git-wip-us.apache.org/repos/asf/stratos/commit/849e17f2
Tree: http://git-wip-us.apache.org/repos/asf/stratos/tree/849e17f2
Diff: http://git-wip-us.apache.org/repos/asf/stratos/diff/849e17f2

Branch: refs/heads/master
Commit: 849e17f2a26d306a4310d50da9949bac4061b77a
Parents: e6803c9
Author: Gayan Gunarathne <[email protected]>
Authored: Mon May 25 19:21:41 2015 +0530
Committer: Gayan Gunarathne <[email protected]>
Committed: Mon Jul 27 14:51:39 2015 +0530

----------------------------------------------------------------------
 .../lvs-extension/src/main/templates/keepalived.conf.template      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/stratos/blob/849e17f2/extensions/load-balancer/lvs-extension/src/main/templates/keepalived.conf.template
----------------------------------------------------------------------
diff --git 
a/extensions/load-balancer/lvs-extension/src/main/templates/keepalived.conf.template
 
b/extensions/load-balancer/lvs-extension/src/main/templates/keepalived.conf.template
index 9cba1fb..840ca3d 100644
--- 
a/extensions/load-balancer/lvs-extension/src/main/templates/keepalived.conf.template
+++ 
b/extensions/load-balancer/lvs-extension/src/main/templates/keepalived.conf.template
@@ -15,7 +15,7 @@ global_defs {
 ! *************************   WEB SERVICES VIP  *************************
 ! ***********************************************************************
 vrrp_instance VirtIP_10 {
-    state MASTER
+    state $state
     interface eth0
     virtual_router_id 10
 ! UNIQUE:

Reply via email to