Statistics
| Branch: | Tag: | Revision:

root / docs / scale / i-pithos.rst @ 7fb14dbb

History | View | Annotate | Download (2.5 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
    ASTAKOS_BASE_URL = 'https://accounts.example.com/'
60

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

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

    
70

    
71
Install pithos web UI with:
72

    
73
.. code-block:: console
74

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

    
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/ui/get_services'
84
    CLOUDBAR_MENU_URL = 'https://accounts.example.com/ui/get_menu'
85

    
86
    PITHOS_UI_LOGIN_URL = "https://accounts.example.com/ui/login?next="
87

    
88
    PITHOS_UI_FEEDBACK_URL = "/feedback"
89

    
90

    
91
XXXXXXXXXXXXXX  should be the Pithos token and id found on astakos node by running:
92

    
93
.. code-block:: console
94

    
95
   # snf-manage service-list
96

    
97
After configuration is done, restart services:
98

    
99
.. code-block:: console
100

    
101
   # /etc/init.d/gunicorn restart
102
   # /etc/init.d/apache2 restart
103

    
104

    
105
Test your Setup:
106
++++++++++++++++
107

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