root / docs / scale / i-pithos.rst @ 301294a9
History | View | Annotate | Download (2.7 kB)
1 |
.. _i-pithos: |
---|---|
2 |
|
3 |
Synnefo |
4 |
------- |
5 |
|
6 |
|
7 |
:ref:`synnefo <i-synnefo>` || |
8 |
:ref:`ns <i-ns>` || |
9 |
:ref:`apt <i-apt>` || |
10 |
:ref:`mq <i-mq>` || |
11 |
:ref:`db <i-db>` || |
12 |
:ref:`gunicorn <i-gunicorn>` || |
13 |
:ref:`apache <i-apache>` || |
14 |
:ref:`webproject <i-webproject>` || |
15 |
:ref:`astakos <i-astakos>` || |
16 |
:ref:`cms <i-cms>` || |
17 |
pithos || |
18 |
:ref:`cyclades <i-cyclades>` || |
19 |
:ref:`kamaki <i-kamaki>` || |
20 |
:ref:`backends <i-backends>` |
21 |
|
22 |
|
23 |
Pithos Setup |
24 |
++++++++++++ |
25 |
|
26 |
The following apply to ``pithos`` node. For the rest of the sections we will |
27 |
refer to its IP with FQDN ``pithos.example.com``. Please make sure you have db, |
28 |
gunicorn, apache, webproject and astakos already setup. |
29 |
|
30 |
|
31 |
First you must setup an NFS server and export `/srv/pithos` directory. |
32 |
|
33 |
.. code-block:: console |
34 |
|
35 |
# cd /srv/pithos |
36 |
# mkdir data |
37 |
# chown www-data:www-data data |
38 |
# chmod g+ws data |
39 |
# apt-get install -t squeeze-backports nfs-kernel-server |
40 |
|
41 |
Here add these lines in `/etc/exports`: |
42 |
|
43 |
.. code-block:: console |
44 |
|
45 |
/srv/pithos 4.3.2.0/24(rw,sync,no_subtree_check,no_root_squash) |
46 |
/srv 4.3.2.0/24(rw,fsid=0,no_subtree_check,sync) |
47 |
|
48 |
|
49 |
And then install the corresponding package: |
50 |
|
51 |
.. code-block:: console |
52 |
|
53 |
# apt-get install snf-pithos-app |
54 |
|
55 |
In `/etc/synnefo/pithos.conf` add: |
56 |
|
57 |
.. code-block:: console |
58 |
|
59 |
PITHOS_AUTHENTICATION_URL = 'https:/accounts.example.com/im/authenticate' |
60 |
PITHOS_AUTHENTICATION_USERS = None |
61 |
PITHOS_USER_CATALOG_URL = 'https://accounts.example.com/user_catalogs' |
62 |
PITHOS_USER_FEEDBACK_URL = 'https://accounts.example.com/feedback' |
63 |
PITHOS_USER_LOGIN_URL = 'https://accounts.example.com/login' |
64 |
|
65 |
PITHOS_BACKEND_DB_CONNECTION = 'postgresql://synnefo:example_passw0rd@db.example.com:5432/snf_pithos' |
66 |
PITHOS_BACKEND_BLOCK_PATH = '/srv/pithos/data' |
67 |
PITHOS_BACKEND_QUOTA = 20 * 1024 * 1024 * 1024 |
68 |
PITHOS_UPDATE_MD5 = False |
69 |
PITHOS_SERVICE_TOKEN = 'XXXXXXXXXXX' |
70 |
|
71 |
|
72 |
Install pithos web UI with: |
73 |
|
74 |
.. code-block:: console |
75 |
|
76 |
# apt-get install snf-pithos-webclient |
77 |
|
78 |
In `/etc/synnefo/webclient.conf` add: |
79 |
|
80 |
.. code-block:: console |
81 |
|
82 |
CLOUDBAR_LOCATION = 'https://accounts.example.com/static/im/cloudbar/' |
83 |
CLOUDBAR_SERVICES_URL = 'https://accounts.example.com/im/get_services' |
84 |
CLOUDBAR_MENU_URL = 'https://accounts.example.com/im/get_menu' |
85 |
|
86 |
PITHOS_UI_CLOUDBAR_ACTIVE_SERVICE = 'XXXXXXXX' |
87 |
|
88 |
PITHOS_UI_LOGIN_URL = "https://accounts.example.com/im/login?next=" |
89 |
|
90 |
PITHOS_UI_FEEDBACK_URL = "/feedback" |
91 |
|
92 |
|
93 |
The ``PITHOS_SERVICE_TOKEN`` and ``PITHOS_UI_CLOUDBAR_ACTIVE_SERVICE`` should be |
94 |
the Pithos+ token and id returned by running on the astakos node: |
95 |
|
96 |
.. code-block:: console |
97 |
|
98 |
# snf-manage service-list |
99 |
|
100 |
After configuration is done, restart services: |
101 |
|
102 |
.. code-block:: console |
103 |
|
104 |
# /etc/init.d/gunicorn restart |
105 |
# /etc/init.d/apache2 restart |
106 |
|
107 |
|
108 |
Test your Setup: |
109 |
++++++++++++++++ |