Ori.livneh has uploaded a new change for review.

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


Change subject: Add supervisord configuration for IPython Notebook
......................................................................

Add supervisord configuration for IPython Notebook

Also adds 'python-pexpect', which is a recommended package. (IPython Notebook
ships with an inferior process management library, but it will use pexpect if
available.)

Change-Id: I0d0de6a4d00bb2bba512c2ae355b93028be7caff
---
A modules/eventlogging/files/notebook.conf
M modules/eventlogging/manifests/notebook.pp
2 files changed, 15 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/27/59727/1

diff --git a/modules/eventlogging/files/notebook.conf 
b/modules/eventlogging/files/notebook.conf
new file mode 100644
index 0000000..b1447e0
--- /dev/null
+++ b/modules/eventlogging/files/notebook.conf
@@ -0,0 +1,7 @@
+[program:notebook]
+user = ipython
+command = ipython notebook
+redirect_stderr = true
+stdout_logfile = /var/log/supervisor/%(program_name)s.log
+stderr_logfile = NONE
+environment = IPYTHONDIR=/var/lib/ipython
diff --git a/modules/eventlogging/manifests/notebook.pp 
b/modules/eventlogging/manifests/notebook.pp
index eb8ac55..c7e85bb 100644
--- a/modules/eventlogging/manifests/notebook.pp
+++ b/modules/eventlogging/manifests/notebook.pp
@@ -9,6 +9,7 @@
                'python-matplotlib',
                'python-numpy',
                'python-pandas',
+               'python-pexpect',
                'python-scipy',
        ]:
                ensure => latest,
@@ -18,4 +19,11 @@
                name => 'ipython',
        }
 
+       file { '/etc/supervisor/conf.d/notebook.conf':
+               source  => 'puppet:///modules/eventlogging/notebook.conf',
+               require => [ Package['ipython-notebook'], Systemuser['ipython'] 
],
+               notify  => Service['supervisor'],
+               mode    => '0444',
+       }
+
 }

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I0d0de6a4d00bb2bba512c2ae355b93028be7caff
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Ori.livneh <[email protected]>

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

Reply via email to