Skip to content

Commit

Permalink
Adding docs on how to install on Debian Jessie
Browse files Browse the repository at this point in the history
  • Loading branch information
mterzo committed Jul 8, 2017
1 parent b82493e commit 1713f8e
Show file tree
Hide file tree
Showing 2 changed files with 70 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.rst
Expand Up @@ -300,6 +300,14 @@ scenarios:
If you deploy Puppetboard through a different setup we'd welcome a pull
request that adds the instructions to this section.

Installation On Linux Distros
^^^^^^^^^^^^^^^^^^^^^^^^

`Debian Jessie Install`_.

.. _Debian Jessie Install: docs/Debian-Jessie.md


Apache + mod_wsgi
^^^^^^^^^^^^^^^^^

Expand Down
62 changes: 62 additions & 0 deletions docs/Debian-Jessie.md
@@ -0,0 +1,62 @@
# Install Using debian jessie

```
$ apt-get install python-pip git
$ mkdir /opt/voxpupuli-puppetboard/
$ cd /opt/voxpupuli-puppetboard/
$ git clone https://github.com/voxpupuli/puppetboard
$ cd /opt/voxpupuli-puppetboard/puppetboard
$ pip install puppetboard
```

* /etc/apache2/sites-available/voxpupuli-puppetboard.conf

```
<VirtualHost *:80>
ServerName puppetboard.my.domain
WSGIDaemonProcess puppetboard user=www-data group=www-data threads=5 python-path=/usr/local/lib/python2.7/dist-packages/puppetboard:python-home=/opt/voxpupuli-puppetboard/puppetboard:/opt/voxpupuli-puppetboard/puppetboard/puppetboard:/usr/local/lib/python2.7/dist-packages/puppetboard/static
WSGIScriptAlias / /opt/voxpupuli-puppetboard/puppetboard/wsgi.py
ErrorLog /var/log/apache2/puppetboard.error.log
CustomLog /var/log/apache2/puppetboard.access.log combined
<Directory /opt/voxpupuli-puppetboard/puppetboard>
<Files wsgi.py>
Order deny,allow
Allow from all
Require all granted
</Files>
</Directory>
Alias /static /usr/local/lib/python2.7/dist-packages/puppetboard/static
<Directory /usr/local/lib/python2.7/dist-packages/puppetboard/static>
Satisfy Any
Allow from all
Require all granted
</Directory>
<Directory /usr/local/lib/python2.7/dist-packages/puppetboard>
WSGIProcessGroup puppetboard
WSGIApplicationGroup %{GLOBAL}
Order deny,allow
Allow from all
Require all granted
</Directory>
</VirtualHost>
```

```
$ a2ensite voxpupuli-puppetboard.conf
```

* /opt/voxpupuli-puppetboard/puppetboard/wsgi.py
```
from __future__ import absolute_import
import os
import sys
sys.path.append('/opt/voxpupuli-puppetboard/puppetboard')
from puppetboard.app import app as application
```

0 comments on commit 1713f8e

Please sign in to comment.