Synnefo

synnefo || ns || apt || mq || db || gunicorn || apache || webproject || astakos || 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:

ASTAKOS_BASE_URL = 'https://accounts.example.com/'

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

# Set False if astakos & pithos are on the same node
PITHOS_PROXY_USER_SERVICES = 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/ui/get_services'
CLOUDBAR_MENU_URL = 'https://accounts.example.com/ui/get_menu'

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