Synnefo

synnefo || ns || apt || mq || db || gunicorn || apache || webproject || astakos || qh || cms || pithos || cyclades || kamaki || 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.

# cd /srv/pithos
# mkdir data
# chown www-data:www-data data
# chmod g+ws data
# apt-get install -t squeeze-backports nfs-kernel-server

Here add these lines in /etc/exports:

/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:

# apt-get install snf-pithos-app

In /etc/synnefo/pithos.conf add:

PITHOS_AUTHENTICATION_URL = 'https:/accounts.example.com/im/authenticate'
PITHOS_AUTHENTICATION_USERS = None
PITHOS_USER_CATALOG_URL = 'https://accounts.example.com/user_catalogs'
PITHOS_USER_FEEDBACK_URL = 'https://accounts.example.com/feedback'
PITHOS_USER_LOGIN_URL = 'https://accounts.example.com/login'

PITHOS_BACKEND_DB_CONNECTION = 'postgresql://synnefo:example_passw0rd@db.example.com:5432/snf_pithos'
PITHOS_BACKEND_BLOCK_PATH = '/srv/pithos/data'
PITHOS_BACKEND_QUOTA = 20 * 1024 * 1024 * 1024
PITHOS_UPDATE_MD5 = False
PITHOS_SERVICE_TOKEN = 'XXXXXXXXXXX'

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

Install pithos web UI with:

# apt-get install snf-pithos-webclient

In /etc/synnefo/webclient.conf add:

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

PITHOS_UI_CLOUDBAR_ACTIVE_SERVICE = 'XXXXXXXX'

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

PITHOS_UI_FEEDBACK_URL = "/feedback"

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

# snf-manage service-list

After configuration is done, restart services:

# /etc/init.d/gunicorn restart
# /etc/init.d/apache2 restart

Test your Setup:

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

Table Of Contents

This Page