Statistics
| Branch: | Tag: | Revision:

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

History | View | Annotate | Download (2.2 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

    
67
Install pithos web UI with:
68

    
69
.. code-block:: console
70

    
71
   # apt-get install snf-pithos-webclient
72

    
73

    
74
In `/etc/synnefo/webclient.conf` add:
75

    
76
.. code-block:: console
77

    
78
    CLOUDBAR_LOCATION = 'https://accounts.example.com/static/im/cloudbar/'
79
    CLOUDBAR_SERVICES_URL = 'https://accounts.example.com/ui/get_services'
80
    CLOUDBAR_MENU_URL = 'https://accounts.example.com/ui/get_menu'
81

    
82
XXXXXXXXXXXXXX  should be the Pithos token and id found on astakos node by running:
83

    
84
.. code-block:: console
85

    
86
   # snf-manage service-list
87

    
88
After configuration is done, restart services:
89

    
90
.. code-block:: console
91

    
92
   # /etc/init.d/gunicorn restart
93
   # /etc/init.d/apache2 restart
94

    
95

    
96
Test your Setup:
97
++++++++++++++++
98

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