From ecdb2ced59a50f970bc3a095b31036802f75db5b Mon Sep 17 00:00:00 2001 From: Sean Dague Date: Sun, 1 Dec 2013 13:14:13 -0500 Subject: [PATCH] also link in /etc/elastic-recheck/queries in I86317fcf6f1886ab5b6c0ee154b29e71865c52b7 we want to move to a directory of queries instead of a single file. In order to support this we need to support linking in that directory as well. This needs to land prior to that change. Change-Id: I3af42cff1050754c6844db994004fd203063bb3d --- modules/elastic_recheck/manifests/init.pp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/modules/elastic_recheck/manifests/init.pp b/modules/elastic_recheck/manifests/init.pp index 0da5bbd871..2609216a56 100644 --- a/modules/elastic_recheck/manifests/init.pp +++ b/modules/elastic_recheck/manifests/init.pp @@ -115,6 +115,16 @@ class elastic_recheck ( ], } + # Link in the queries directory for refactoring + file { '/etc/elastic-recheck/queries': + ensure => link, + target => '/opt/elastic-recheck/queries', + require => [ + Vcsrepo['/opt/elastic-recheck'], + File['/etc/elastic-recheck'], + ], + } + file { '/home/recheck': ensure => directory, mode => '0700',