Ottomata has submitted this change and it was merged.
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(-)
Approvals:
Ottomata: Looks good to me, approved
jenkins-bot: Verified
diff --git a/modules/eventlogging/manifests/init.pp
b/modules/eventlogging/manifests/init.pp
index 55017d5..d807b55 100644
--- a/modules/eventlogging/manifests/init.pp
+++ b/modules/eventlogging/manifests/init.pp
@@ -124,6 +124,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':
content => template('eventlogging/logrotate.erb'),
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: merged
Gerrit-Change-Id: I1fa5c08bfb465c95f5249669d37fe46495cf1606
Gerrit-PatchSet: 3
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: QChris <[email protected]>
Gerrit-Reviewer: Ottomata <[email protected]>
Gerrit-Reviewer: QChris <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits