QChris has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/172884

Change subject: Link EventLogging logs into /var/log/eventlogging
......................................................................

Link EventLogging logs into /var/log/eventlogging

By linking the EventLogging logs back into /var/log/eventlogging, they
can be found at a more canonical place, regardless of their effective
place in the file system.

Change-Id: I1fa5c08bfb465c95f5249669d37fe46495cf1606
---
M modules/eventlogging/manifests/init.pp
1 file changed, 9 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/84/172884/1

diff --git a/modules/eventlogging/manifests/init.pp 
b/modules/eventlogging/manifests/init.pp
index d7b5918..2ad2556 100644
--- a/modules/eventlogging/manifests/init.pp
+++ b/modules/eventlogging/manifests/init.pp
@@ -112,6 +112,15 @@
         mode    => '0664',
     }
 
+    # Link logs to /var/log/eventlogging, so people can find it in a
+    # more prominent place too.
+    if ( $log_dir != '/var/log/eventlogging' ) {
+        file { '/var/log/eventlogging':
+            ensure  => 'link',
+            target  => $log_dir,
+        }
+    }
+
     file { '/etc/logrotate.d/eventlogging':
         source  => 'puppet:///modules/eventlogging/logrotate',
         require => File["${log_dir}/archive"],

-- 
To view, visit https://gerrit.wikimedia.org/r/172884
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I1fa5c08bfb465c95f5249669d37fe46495cf1606
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: QChris <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to