Gehel has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/366017 )

Change subject: Update PYTHONPATH for mjolnir-kafka-daemon
......................................................................


Update PYTHONPATH for mjolnir-kafka-daemon

I had thought python would include cwd in the path, but
apparently not. We need to explicitly set PYTHONPATH
to include the deployed repo.

Change-Id: Ib905f32f30576ee49ba0e72b80839c39d2166eb9
---
M modules/profile/templates/mjolnir/kafka-daemon.service.erb
1 file changed, 1 insertion(+), 0 deletions(-)

Approvals:
  jenkins-bot: Verified
  Gehel: Looks good to me, approved



diff --git a/modules/profile/templates/mjolnir/kafka-daemon.service.erb 
b/modules/profile/templates/mjolnir/kafka-daemon.service.erb
index 0e24426..b6947ba 100644
--- a/modules/profile/templates/mjolnir/kafka-daemon.service.erb
+++ b/modules/profile/templates/mjolnir/kafka-daemon.service.erb
@@ -6,6 +6,7 @@
 User=nobody
 Group=nogroup
 WorkingDirectory=/srv/deployment/relforge/mjolnir
+Environment=PYTHONPATH=/srv/deployment/relforge/mjolnir
 ExecStart=/usr/bin/python2 
/srv/deployment/relforge/mjolnir/mjolnir/cli/kafka_daemon.py --brokers <%= 
@kafka_config['brokers']['string'] %>
 StandardInput=null
 StandardOutput=journal

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

Gerrit-MessageType: merged
Gerrit-Change-Id: Ib905f32f30576ee49ba0e72b80839c39d2166eb9
Gerrit-PatchSet: 3
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: EBernhardson <[email protected]>
Gerrit-Reviewer: Gehel <[email protected]>
Gerrit-Reviewer: Volans <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

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

Reply via email to