Filippo Giunchedi has uploaded a new change for review.

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

Change subject: rsyslog: fully port receiver to jessie
......................................................................

rsyslog: fully port receiver to jessie

Change-Id: I81681558d1d21330a8879005b366e063e6b7740b
---
M modules/rsyslog/manifests/receiver.pp
M modules/rsyslog/templates/receiver_logrotate.erb.conf
2 files changed, 3 insertions(+), 9 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/49/315649/1

diff --git a/modules/rsyslog/manifests/receiver.pp 
b/modules/rsyslog/manifests/receiver.pp
index 462f384..07226fe 100644
--- a/modules/rsyslog/manifests/receiver.pp
+++ b/modules/rsyslog/manifests/receiver.pp
@@ -29,12 +29,6 @@
         fail("rsyslog log and archive are the same: ${log_directory}")
     }
 
-    if os_version('debian >= jessie') {
-        $rsyslog_user = 'root'
-    } else {
-        $rsyslog_user = 'syslog'
-    }
-
     rsyslog::conf { 'receiver':
         content  => template("${module_name}/receiver.erb.conf"),
         priority => 10,
@@ -58,14 +52,14 @@
 
     file { $log_directory:
         ensure => directory,
-        owner  => $rsyslog_user,
+        owner  => 'root',
         group  => 'root',
         mode   => '0755',
     }
 
     file { $archive_directory:
         ensure => directory,
-        owner  => $rsyslog_user,
+        owner  => 'root',
         group  => 'root',
         mode   => '0755',
     }
diff --git a/modules/rsyslog/templates/receiver_logrotate.erb.conf 
b/modules/rsyslog/templates/receiver_logrotate.erb.conf
index a5465f3..0f3ae0d 100644
--- a/modules/rsyslog/templates/receiver_logrotate.erb.conf
+++ b/modules/rsyslog/templates/receiver_logrotate.erb.conf
@@ -13,6 +13,6 @@
   notifempty
   sharedscripts
   postrotate
-    invoke-rc.d rsyslog reload >/dev/null 2>&1 || true
+    invoke-rc.d rsyslog rotate >/dev/null 2>&1 || true
   endscript
 }

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I81681558d1d21330a8879005b366e063e6b7740b
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Filippo Giunchedi <fgiunch...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to