From 6ab8bd166a18cc2139d00f2f6bca2327b722f495 Mon Sep 17 00:00:00 2001
From: Clark Boylan <clark.boylan@gmail.com>
Date: Thu, 20 Nov 2014 14:58:27 -0800
Subject: [PATCH] Install lsof on the git mirror nodes

lsof is a very valuable tool for debugging connectivity issues. It is
not installed on our centos6 nodes by default. Install it here so that
we have it available for debugging connections issues.

Change-Id: I836b6bb4e852a2fbbff8d3a1620920de8d03b112
---
 modules/openstack_project/manifests/git.pp         | 4 ++++
 modules/openstack_project/manifests/git_backend.pp | 4 ++++
 2 files changed, 8 insertions(+)

diff --git a/modules/openstack_project/manifests/git.pp b/modules/openstack_project/manifests/git.pp
index 362b528502..96bb87f0ad 100644
--- a/modules/openstack_project/manifests/git.pp
+++ b/modules/openstack_project/manifests/git.pp
@@ -35,6 +35,10 @@ class openstack_project::git (
     ensure => present,
   }
 
+  package { 'lsof':
+    ensure => present,
+  }
+
   class { 'haproxy':
     enable         => true,
     global_options => {
diff --git a/modules/openstack_project/manifests/git_backend.pp b/modules/openstack_project/manifests/git_backend.pp
index 41b3814098..c6c2ca194a 100644
--- a/modules/openstack_project/manifests/git_backend.pp
+++ b/modules/openstack_project/manifests/git_backend.pp
@@ -26,6 +26,10 @@ class openstack_project::git_backend (
   $project_config_repo = '',
 ) {
 
+  package { 'lsof':
+    ensure => present,
+  }
+
   class { 'project_config':
     url  => $project_config_repo,
   }