Statistics
| Branch: | Tag: | Revision:

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

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:`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
    PITHOS_QUOTAHOLDER_TOKEN = '1234'
69
    PITHOS_QUOTAHOLDER_URL = 'https://qh.example.com/quotaholder/v'
70

    
71
    # Set False if astakos & pithos are on the same node
72
    PITHOS_PROXY_USER_SERVICES = True
73
    PITHOS_USE_QUOTAHOLDER = True
74

    
75

    
76
Install pithos web UI with:
77

    
78
.. code-block:: console
79

    
80
   # apt-get install snf-pithos-webclient
81

    
82

    
83
In `/etc/synnefo/webclient.conf` add:
84

    
85
.. code-block:: console
86

    
87
    CLOUDBAR_LOCATION = 'https://accounts.example.com/static/im/cloudbar/'
88
    CLOUDBAR_SERVICES_URL = 'https://accounts.example.com/im/get_services'
89
    CLOUDBAR_MENU_URL = 'https://accounts.example.com/im/get_menu'
90

    
91
    PITHOS_UI_CLOUDBAR_ACTIVE_SERVICE = 'XXXXXXXX'
92

    
93
    PITHOS_UI_LOGIN_URL = "https://accounts.example.com/im/login?next="
94

    
95
    PITHOS_UI_FEEDBACK_URL = "/feedback"
96

    
97

    
98
XXXXXXXXXXXXXX  should be the Pithos+ token and id found on astakos node by running:
99

    
100
.. code-block:: console
101

    
102
   # snf-manage service-list
103

    
104
After configuration is done, restart services:
105

    
106
.. code-block:: console
107

    
108
   # /etc/init.d/gunicorn restart
109
   # /etc/init.d/apache2 restart
110

    
111

    
112
Test your Setup:
113
++++++++++++++++
114

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