0001-added-missing-packages-gettext-and-python-psycopg2-a.patch
README.rst | ||
---|---|---|
15 | 15 |
.. code-block:: bash |
16 | 16 | |
17 | 17 |
pip install --user -r requirements.txt |
18 |
source ~/.profile |
|
18 | 19 | |
19 | 20 | |
20 | 21 |
System requirements |
21 | 22 |
+++++++++++++++++++ |
22 | 23 | |
23 |
* postgresql server must be installed |
|
24 |
* postgresql server (version 9.x is adviced) must be installed
|
|
24 | 25 |
* the system's user running the install.yml playbook must be a sudoer |
25 | 26 |
* configure postgresql in order to have this configuration: |
26 | 27 | |
... | ... | |
28 | 29 |
* postgresql must have a postgres user authorized to connect and create a db. |
29 | 30 |
* please edit /etc/postgresql/[INSTALLED VERSION]/main/pg_hba.conf and add these lines (if not present): |
30 | 31 | |
32 |
First line allows postgres user to have all privileges on locahost |
|
33 |
Second line allows to have the system's user mapped to postgresql username and its own database with the same name |
|
34 | ||
31 | 35 |
.. code-block:: configuration |
32 | 36 | |
33 | 37 |
local all postgres trust |
34 | 38 |
local all all peer |
35 | 39 | |
36 |
First line allows postgres user to have all privileges on locahost |
|
37 |
Second line allows to have the system's user mapped to postgresql username and its own database with the same name |
|
38 | ||
39 | 40 | |
40 | 41 |
Configure local DNS |
41 | 42 |
------------------- |
roles/base/tasks/main.yml | ||
---|---|---|
14 | 14 |
- python-lasso |
15 | 15 |
- python-pip |
16 | 16 |
- python-virtualenv |
17 |
- python-psycopg2 |
|
18 |
- gettext |
|
17 | 19 |
- rabbitmq-server |
18 | 20 |
- ruby-sass |
19 | 21 |
- supervisor |
... | ... | |
26 | 28 |
- name: create the virtualenv and install django |
27 | 29 |
pip: |
28 | 30 |
name: django |
29 |
version: "{{ django_version}}"
|
|
31 |
version: "{{django_version}}" |
|
30 | 32 |
virtualenv: "{{venv}}" |
31 | 33 | |
32 | 34 |
- name: "create {{src_dir}} directory" |
33 |
- |