From 58148d3f21042297e61e7c43c13f3dfc59cbd32e Mon Sep 17 00:00:00 2001
From: Paul Belanger <pabelanger@redhat.com>
Date: Wed, 23 Dec 2015 12:39:03 -0500
Subject: [PATCH] Subscribe to project_config for create-hound-config

In an effort to reduce how often this runs.  A future patch would add
better support into jeepyb to detect if the file actually changes, if
so return a different return code and have puppet only notify the
hound servce to reload.

Change-Id: I29c7e41ee0e605d290dc360db10149e157d09a0d
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
---
 modules/openstack_project/manifests/codesearch.pp | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/modules/openstack_project/manifests/codesearch.pp b/modules/openstack_project/manifests/codesearch.pp
index 467a7f7526..c840e95396 100644
--- a/modules/openstack_project/manifests/codesearch.pp
+++ b/modules/openstack_project/manifests/codesearch.pp
@@ -29,7 +29,8 @@ class openstack_project::codesearch (
       $::project_config::config_dir,
       File['/home/hound'],
     ],
-    notify      => Service['hound']
+    notify      => Service['hound'],
+    refreshonly => true,
+    subscribe   => Class['project_config'],
   }
-
 }