Okupy/Installation

Repositories

 * Clone somewhere the gentoo-identity-bootstrap repository:


 * Clone (in a different directory) the identity.gentoo.org repository:

Dependencies
Get the dependencies (choose one of the followings):

With pip

 * Optional: setup virtualenv
 * Install the dependencies:

With setup.py

 * Optional: setup virtualenv
 * Install the dependencies:

With emerge (Gentoo-specific)

 * Add the okupy overlay:


 * Install the dependencies:

Configuration

 * Copy the sample settings files:


 * Edit :
 * In STATICFILES_DIRS, replace with the absolute path that you cloned the gentoo-identity-bootstrap repository earlier
 * Edit
 * Add sqlite3 db (sufficient for testing)
 * Add LDAP configuration (if applicable)
 * Configure Memcached
 * Sync the database:

Production environment

 * Create the dedicated user that will run okupy


 * Perform the same setup as for Development environment (using the okupy user)

uWSGI setup

 * Install with USE=python
 * Copy to
 * Put the following options in


 * Symlink to from, and start it:

NGINX setup

 * Install


 * Copy the server certificates and private keys to
 * Concatenate all the allowed CA certificates for client auth:


 * Add the following options in

virtualenv

 * Install virtualenv (replace the following command with an equivalent in case you are working in a non-Gentoo distro)


 * The directory is already in, so please prefer this name
 * The deactivate command will exit the virtual environment

memcached

 * Copy to


 * Symlink to


 * Put the following data in :


 * edit and put the same path in CACHES:


 * Start memcached

OpenLDAP Server

 * (TODO)

OpenLDAP client only

 * We have a testing instance on ldap://evidence.tampakrap.gr
 * Contact tampakrap to get the certificates and the rootDN credentials
 * Install OpenLDAP package:
 * In Gentoo:


 * Put the certificates in
 * Put the following content in :


 * In :