Statistics
| Branch: | Tag: | Revision:

root / docs / scale / i-pithos.rst @ 48646327

History | View | Annotate | Download (2.6 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:`qh <i-qh>` ||
17
:ref:`cms <i-cms>` ||
18
pithos ||
19
:ref:`cyclades <i-cyclades>` ||
20
:ref:`kamaki <i-kamaki>` ||
21
:ref:`backends <i-backends>`
22

    
23

    
24
Pithos Setup
25
++++++++++++
26

    
27
The following apply to ``pithos`` node. For the rest of the sections we will
28
refer to its IP with FQDN ``pithos.example.com``. Please make sure you have db,
29
gunicorn, apache, webproject and astakos already setup.
30

    
31

    
32
First you must setup an NFS server and export `/srv/pithos` directory.
33

    
34
.. code-block:: console
35

    
36
   # cd /srv/pithos
37
   # mkdir data
38
   # chown www-data:www-data data
39
   # chmod g+ws data
40
   # apt-get install -t squeeze-backports nfs-kernel-server
41

    
42
Here add these lines in `/etc/exports`:
43

    
44
.. code-block:: console
45

    
46
    /srv/pithos 4.3.2.0/24(rw,sync,no_subtree_check,no_root_squash)
47
    /srv 4.3.2.0/24(rw,fsid=0,no_subtree_check,sync)
48

    
49

    
50
And then install the corresponding package:
51

    
52
.. code-block:: console
53

    
54
   # apt-get install snf-pithos-app
55

    
56
In `/etc/synnefo/pithos.conf` add:
57

    
58
.. code-block:: console
59

    
60
    ASTAKOS_URL = 'https:/accounts.example.com/'
61

    
62
    PITHOS_BACKEND_DB_CONNECTION = 'postgresql://synnefo:example_passw0rd@db.example.com:5432/snf_pithos'
63
    PITHOS_BACKEND_BLOCK_PATH = '/srv/pithos/data'
64
    PITHOS_BACKEND_ACCOUNT_QUOTA = 20 * 1024 * 1024 * 1024
65
    PITHOS_UPDATE_MD5 = False
66
    PITHOS_SERVICE_TOKEN = 'XXXXXXXXXXX'
67

    
68
    # Set False if astakos & pithos are on the same node
69
    PITHOS_PROXY_USER_SERVICES = True
70

    
71

    
72
Install pithos web UI with:
73

    
74
.. code-block:: console
75

    
76
   # apt-get install snf-pithos-webclient
77

    
78

    
79
In `/etc/synnefo/webclient.conf` add:
80

    
81
.. code-block:: console
82

    
83
    CLOUDBAR_LOCATION = 'https://accounts.example.com/static/im/cloudbar/'
84
    CLOUDBAR_SERVICES_URL = 'https://accounts.example.com/im/get_services'
85
    CLOUDBAR_MENU_URL = 'https://accounts.example.com/im/get_menu'
86

    
87
    PITHOS_UI_CLOUDBAR_ACTIVE_SERVICE = 'XXXXXXXX'
88

    
89
    PITHOS_UI_LOGIN_URL = "https://accounts.example.com/im/login?next="
90

    
91
    PITHOS_UI_FEEDBACK_URL = "/feedback"
92

    
93

    
94
XXXXXXXXXXXXXX  should be the Pithos+ token and id found on astakos node by running:
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
++++++++++++++++
110

    
111
Visit https://pithos.example.com/ui/ and upload files.