From 07e07186c82c1c7cc536512f7826aa4c3a180701 Mon Sep 17 00:00:00 2001
From: Clark Boylan <clark.boylan@gmail.com>
Date: Thu, 3 Sep 2015 15:57:15 -0700
Subject: [PATCH] Switch to centos7 git01 and git02 hosts

Continue the great switch to centos7 for git backends and replace git01
and 02. Since these are the last two backends to be swapped out switch
the balance method back to leastconn as we will go back to having
homogenous git backends and can get away with leastconn balancing.

Change-Id: Ib3180587892bb46b3dc9d6a7dea28a28da85c3b3
---
 manifests/site.pp                          | 4 ++--
 modules/openstack_project/manifests/git.pp | 6 +++---
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/manifests/site.pp b/manifests/site.pp
index 4c18c52f7b..46afc64f4b 100644
--- a/manifests/site.pp
+++ b/manifests/site.pp
@@ -454,8 +454,8 @@ node /^git(-fe\d+)?\.openstack\.org$/ {
       'git08.openstack.org',
     ],
     balancer_member_ips     => [
-      '198.61.223.164',
-      '23.253.102.209',
+      '104.130.243.237',
+      '104.130.243.109',
       '67.192.247.197',
       '67.192.247.180',
       '23.253.69.135',
diff --git a/modules/openstack_project/manifests/git.pp b/modules/openstack_project/manifests/git.pp
index e9fa1a2a1c..79bdcd08bc 100644
--- a/modules/openstack_project/manifests/git.pp
+++ b/modules/openstack_project/manifests/git.pp
@@ -74,7 +74,7 @@ class openstack_project::git (
     mode             => 'tcp',
     collect_exported => false,
     options          => {
-      'balance' => 'source',
+      'balance' => 'leastconn',
       'option'  => [
         'tcplog',
       ],
@@ -86,7 +86,7 @@ class openstack_project::git (
     mode             => 'tcp',
     collect_exported => false,
     options          => {
-      'balance' => 'source',
+      'balance' => 'leastconn',
       'option'  => [
         'tcplog',
       ],
@@ -100,7 +100,7 @@ class openstack_project::git (
     options          => {
       'maxconn' => '256',
       'backlog' => '256',
-      'balance' => 'source',
+      'balance' => 'leastconn',
       'option'  => [
         'tcplog',
       ],