Pyoungmeister has submitted this change and it was merged.

Change subject: lucene-jobs: enable conf file loading
......................................................................


lucene-jobs: enable conf file loading

We generate a shell configuration file to overload the JAVA_OPTS*
variables.  This change makes the script source it.

Change-Id: Ib9828661bc593c37cbc748ad5fe8757c8f342863
---
M files/lucene/lucene.jobs.sh
1 file changed, 5 insertions(+), 0 deletions(-)

Approvals:
  Ram: Looks good to me, but someone else must approve
  Pyoungmeister: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/files/lucene/lucene.jobs.sh b/files/lucene/lucene.jobs.sh
index 961f968..5c55ff8 100755
--- a/files/lucene/lucene.jobs.sh
+++ b/files/lucene/lucene.jobs.sh
@@ -15,6 +15,11 @@
 JAVA_OPTS_RELATEDBUILDER='-Xmx4000m'
 JAVA_OPTS_SUGGESTBUILDER='-Xmx8000m'
 
+# load configuration file maintained by puppet
+if [ -s "$confs/lucene.jobs.conf" ]; then
+       . "$confs/lucene.jobs.conf"
+fi
+
 # detect realm (production or labs)
 WMF_REALM='production'
 if [ -f /etc/wikimedia-realm ]

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

Gerrit-MessageType: merged
Gerrit-Change-Id: Ib9828661bc593c37cbc748ad5fe8757c8f342863
Gerrit-PatchSet: 2
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Hashar <[email protected]>
Gerrit-Reviewer: Pyoungmeister <[email protected]>
Gerrit-Reviewer: Ram <[email protected]>
Gerrit-Reviewer: jenkins-bot

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

Reply via email to