Yuvipanda has uploaded a new change for review.

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

Change subject: diamond: Let diamond read the puppet state file
......................................................................

diamond: Let diamond read the puppet state file

Currently, /var/lib/puppet is set to have no permissions for o,
causing diamond to not be able to read the last_run_summary.yaml
file despite that file having appropriate permissions set by
puppet. This ensures that diamond can actually read that file.

Change-Id: I615963917a5a042e645b2caec441369149a9ea8a
---
M modules/diamond/manifests/collector/minimalpuppetagent.pp
1 file changed, 5 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/61/143861/1

diff --git a/modules/diamond/manifests/collector/minimalpuppetagent.pp 
b/modules/diamond/manifests/collector/minimalpuppetagent.pp
index 0300d75..65a5e9f 100644
--- a/modules/diamond/manifests/collector/minimalpuppetagent.pp
+++ b/modules/diamond/manifests/collector/minimalpuppetagent.pp
@@ -10,6 +10,11 @@
 define diamond::collector::minimalpuppetagent {
     ensure_packages(['python-yaml'])
 
+    file { '/var/lib/puppet':
+        ensure => present,
+        mode   => '0755'
+    }
+
     diamond::collector { 'MinimalPuppetAgent':
         source  => 'puppet:///modules/diamond/collector/minimalpuppetagent.py',
         require => Package['python-yaml'],

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I615963917a5a042e645b2caec441369149a9ea8a
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Yuvipanda <yuvipa...@gmail.com>

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

Reply via email to