Tim Landscheidt has uploaded a new change for review.

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


Change subject: Grid Engine: Link to accounting instead of pulling it
......................................................................

Grid Engine: Link to accounting instead of pulling it

The initial thought behind pulling the accounting file to the local
machine was that in that way qacct did not need network availability
to work.  However, as when /data/project is not accessible the host is
not really usable at all, we can replace the pull with a symbolic
link.

Change-Id: Ia308ce1c140813df5bc31b71cb839184c12a53ba
---
M modules/gridengine/manifests/submit_host.pp
1 file changed, 6 insertions(+), 4 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/52/77452/1

diff --git a/modules/gridengine/manifests/submit_host.pp 
b/modules/gridengine/manifests/submit_host.pp
index 76e2d80..e22e028 100644
--- a/modules/gridengine/manifests/submit_host.pp
+++ b/modules/gridengine/manifests/submit_host.pp
@@ -11,10 +11,12 @@
         }
 
         cron { "pull-accounting-from-shared":
-          command => "cp -f /data/project/.system/accounting 
/var/lib/gridengine/default/common/accounting.tmp && mv -f 
/var/lib/gridengine/default/common/accounting.tmp 
/var/lib/gridengine/default/common/accounting",
-          user => root,
-          minute => [1, 6, 11, 16, 21, 26, 31, 36, 41, 46, 51, 56],
-          ensure => present;
+          ensure => absent,
+        }
+
+        file { "/var/lib/gridengine/default/common/accounting":
+          ensure => link,
+          target => "/data/project/.system/accounting",
         }
 
 # Not actually possible in the labs

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia308ce1c140813df5bc31b71cb839184c12a53ba
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Tim Landscheidt <t...@tim-landscheidt.de>

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

Reply via email to