Statistics
| Branch: | Tag: | Revision:

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

History | View | Annotate | Download (2.4 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_UPDATE_MD5 = False
64
    PITHOS_SERVICE_TOKEN = 'XXXXXXXXXXX'
65

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

    
69

    
70
Install pithos web UI with:
71

    
72
.. code-block:: console
73

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

    
76

    
77
In `/etc/synnefo/webclient.conf` add:
78

    
79
.. code-block:: console
80

    
81
    CLOUDBAR_LOCATION = 'https://accounts.example.com/static/im/cloudbar/'
82
    CLOUDBAR_SERVICES_URL = 'https://accounts.example.com/ui/get_services'
83
    CLOUDBAR_MENU_URL = 'https://accounts.example.com/ui/get_menu'
84

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

    
87
    PITHOS_UI_FEEDBACK_URL = "/feedback"
88

    
89

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

    
92
.. code-block:: console
93

    
94
   # snf-manage service-list
95

    
96
After configuration is done, restart services:
97

    
98
.. code-block:: console
99

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

    
103

    
104
Test your Setup:
105
++++++++++++++++
106

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