i-pithos.rst 2.71 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
.. _i-pithos:

Synnefo
-------


:ref:`synnefo <i-synnefo>` ||
:ref:`ns <i-ns>` ||
:ref:`apt <i-apt>` ||
:ref:`mq <i-mq>` ||
:ref:`db <i-db>` ||
:ref:`gunicorn <i-gunicorn>` ||
:ref:`apache <i-apache>` ||
:ref:`webproject <i-webproject>` ||
:ref:`astakos <i-astakos>` ||
Dimitris Aragiorgis's avatar
Dimitris Aragiorgis committed
16
:ref:`qh <i-qh>` ||
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
:ref:`cms <i-cms>` ||
pithos ||
:ref:`cyclades <i-cyclades>` ||
:ref:`kamaki <i-kamaki>` ||
:ref:`backends <i-backends>`


Pithos Setup
++++++++++++

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


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

.. code-block:: console

   # cd /srv/pithos
   # mkdir data
   # chown www-data:www-data data
   # chmod g+ws data
40
   # apt-get install -t squeeze-backports nfs-kernel-server
41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59

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

.. code-block:: console

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


And then install the corresponding package:

.. code-block:: console

   # apt-get install snf-pithos-app

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

.. code-block:: console

60
    ASTAKOS_URL = 'https:/accounts.example.com/'
Sofia Papagiannaki's avatar
Sofia Papagiannaki committed
61

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

Dimitris Aragiorgis's avatar
Dimitris Aragiorgis committed
68 69 70 71 72 73 74
    PITHOS_QUOTAHOLDER_TOKEN = '1234'
    PITHOS_QUOTAHOLDER_URL = 'https://qh.example.com/quotaholder/v'

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

75 76 77

Install pithos web UI with:

78
.. code-block:: console
79 80 81

   # apt-get install snf-pithos-webclient

Christos Stavrakakis's avatar
Christos Stavrakakis committed
82

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

85
.. code-block:: console
86 87

    CLOUDBAR_LOCATION = 'https://accounts.example.com/static/im/cloudbar/'
88 89
    CLOUDBAR_SERVICES_URL = 'https://accounts.example.com/astakos/api/get_services'
    CLOUDBAR_MENU_URL = 'https://accounts.example.com/astakos/api/get_menu'
90 91 92 93 94 95 96 97

    PITHOS_UI_CLOUDBAR_ACTIVE_SERVICE = 'XXXXXXXX'

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

    PITHOS_UI_FEEDBACK_URL = "/feedback"


Dimitris Aragiorgis's avatar
Dimitris Aragiorgis committed
98
XXXXXXXXXXXXXX  should be the Pithos+ token and id found on astakos node by running:
99 100 101 102 103 104 105 106 107 108 109

.. code-block:: console

   # snf-manage service-list

After configuration is done, restart services:

.. code-block:: console

   # /etc/init.d/gunicorn restart
   # /etc/init.d/apache2 restart
110 111 112 113


Test your Setup:
++++++++++++++++
Dimitris Aragiorgis's avatar
Dimitris Aragiorgis committed
114 115

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