Use X.Y as placeholder for python version
This commit is contained in:
24
README.rst
24
README.rst
@@ -206,7 +206,7 @@ First we need to create the necessary directories:
|
|||||||
Copy Puppetboard's ``default_settings.py`` to the newly created puppetboard
|
Copy Puppetboard's ``default_settings.py`` to the newly created puppetboard
|
||||||
directory and name the file ``settings.py``. This file will be available
|
directory and name the file ``settings.py``. This file will be available
|
||||||
at the path Puppetboard was installed, for example:
|
at the path Puppetboard was installed, for example:
|
||||||
``/usr/local/lib/python2.7/lib/dist-packages/puppetboard/default_settings.py``.
|
``/usr/local/lib/pythonX.Y/lib/dist-packages/puppetboard/default_settings.py``.
|
||||||
|
|
||||||
Change the settings that need changing to match your environment and delete
|
Change the settings that need changing to match your environment and delete
|
||||||
or comment with a ``#`` the rest of the entries.
|
or comment with a ``#`` the rest of the entries.
|
||||||
@@ -241,9 +241,9 @@ Here is a sample configuration for Debian and Ubuntu:
|
|||||||
ErrorLog /var/log/apache2/puppetboard.error.log
|
ErrorLog /var/log/apache2/puppetboard.error.log
|
||||||
CustomLog /var/log/apache2/puppetboard.access.log combined
|
CustomLog /var/log/apache2/puppetboard.access.log combined
|
||||||
|
|
||||||
Alias /static /usr/local/lib/python2.7/dist-packages/puppetboard/static
|
Alias /static /usr/local/lib/pythonX.Y/dist-packages/puppetboard/static
|
||||||
|
|
||||||
<Directory /usr/local/lib/python2.7/dist-packages/puppetboard>
|
<Directory /usr/local/lib/pythonX.Y/dist-packages/puppetboard>
|
||||||
WSGIProcessGroup puppetboard
|
WSGIProcessGroup puppetboard
|
||||||
WSGIApplicationGroup %{GLOBAL}
|
WSGIApplicationGroup %{GLOBAL}
|
||||||
Order deny,allow
|
Order deny,allow
|
||||||
@@ -262,9 +262,9 @@ Here is a sample configuration for Fedora:
|
|||||||
ErrorLog /var/log/httpd/puppetboard.error.log
|
ErrorLog /var/log/httpd/puppetboard.error.log
|
||||||
CustomLog /var/log/httpd/puppetboard.access.log combined
|
CustomLog /var/log/httpd/puppetboard.access.log combined
|
||||||
|
|
||||||
Alias /static /usr/lib/python2.7/site-packages/puppetboard/static
|
Alias /static /usr/lib/pythonX.Y/site-packages/puppetboard/static
|
||||||
|
|
||||||
<Directory /usr/lib/python2.7/site-packages/puppetboard>
|
<Directory /usr/lib/pythonX.Y/site-packages/puppetboard>
|
||||||
WSGIProcessGroup puppetboard
|
WSGIProcessGroup puppetboard
|
||||||
WSGIApplicationGroup %{GLOBAL}
|
WSGIApplicationGroup %{GLOBAL}
|
||||||
Require all granted
|
Require all granted
|
||||||
@@ -272,9 +272,9 @@ Here is a sample configuration for Fedora:
|
|||||||
</VirtualHost>
|
</VirtualHost>
|
||||||
|
|
||||||
|
|
||||||
Note the directory path, it's the path to where pip installed Puppetboard. We
|
Note the directory path, it's the path to where pip installed Puppetboard; X.Y
|
||||||
also alias the ``/static`` path so that Apache will serve the static files
|
must be replaced with your python version. We also alias the ``/static`` path
|
||||||
like the included CSS and Javascript.
|
so that Apache will serve the static files like the included CSS and Javascript.
|
||||||
|
|
||||||
Apache + mod_passenger
|
Apache + mod_passenger
|
||||||
^^^^^^^^^^^^^^^^^^^^^^
|
^^^^^^^^^^^^^^^^^^^^^^
|
||||||
@@ -296,7 +296,7 @@ First we need to create the necessary directories:
|
|||||||
Copy Puppetboard's ``default_settings.py`` to the newly created puppetboard
|
Copy Puppetboard's ``default_settings.py`` to the newly created puppetboard
|
||||||
directory and name the file ``settings.py``. This file will be available
|
directory and name the file ``settings.py``. This file will be available
|
||||||
at the path Puppetboard was installed, for example:
|
at the path Puppetboard was installed, for example:
|
||||||
``/usr/local/lib/python2.7/lib/dist-packages/puppetboard/default_settings.py``.
|
``/usr/local/lib/pythonX.Y/lib/dist-packages/puppetboard/default_settings.py``.
|
||||||
|
|
||||||
Change the settings that need changing to match your environment and delete
|
Change the settings that need changing to match your environment and delete
|
||||||
or comment with a ``#`` the rest of the entries.
|
or comment with a ``#`` the rest of the entries.
|
||||||
@@ -340,7 +340,7 @@ Now the only thing left to do is configure Apache:
|
|||||||
CustomLog /var/log/apache2/puppetboard.access.log combined
|
CustomLog /var/log/apache2/puppetboard.access.log combined
|
||||||
|
|
||||||
RackAutoDetect On
|
RackAutoDetect On
|
||||||
Alias /static /usr/local/lib/python2.7/dist-packages/puppetboard/static
|
Alias /static /usr/local/lib/pythonX.Y/dist-packages/puppetboard/static
|
||||||
</VirtualHost>
|
</VirtualHost>
|
||||||
|
|
||||||
Note the ``/static`` alias path, it's the path to where pip installed
|
Note the ``/static`` alias path, it's the path to where pip installed
|
||||||
@@ -366,7 +366,7 @@ First we need to create the necessary directories:
|
|||||||
Copy Puppetboard's ``default_settings.py`` to the newly created puppetboard
|
Copy Puppetboard's ``default_settings.py`` to the newly created puppetboard
|
||||||
directory and name the file ``settings.py``. This file will be available
|
directory and name the file ``settings.py``. This file will be available
|
||||||
at the path Puppetboard was installed, for example:
|
at the path Puppetboard was installed, for example:
|
||||||
``/usr/local/lib/python2.7/lib/dist-packages/puppetboard/default_settings.py``.
|
``/usr/local/lib/pythonX.Y/lib/dist-packages/puppetboard/default_settings.py``.
|
||||||
|
|
||||||
Change the settings that need changing to match your environment and delete
|
Change the settings that need changing to match your environment and delete
|
||||||
or comment with a ``#`` the rest of the entries.
|
or comment with a ``#`` the rest of the entries.
|
||||||
@@ -411,7 +411,7 @@ The last thing we need to do is configure nginx to proxy the requests:
|
|||||||
charset utf-8;
|
charset utf-8;
|
||||||
|
|
||||||
location /static {
|
location /static {
|
||||||
alias /usr/local/lib/python2.7/dist-packages/puppetboard/static;
|
alias /usr/local/lib/pythonX.Y/dist-packages/puppetboard/static;
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
|
|||||||
Reference in New Issue
Block a user