| 1 |
Cassandra configuration backend |
| 2 |
========================================== |
| 3 |
|
| 4 |
`Cassandra <https://cassandra.apache.org/>`__ is a NoSQL database that can be |
| 5 |
used both for storing configuration and |
| 6 |
:doc:`sessions<cassandrasessionbackend>`. You need to install Perl DBD::Cassandra |
| 7 |
module to be able to use this backend. This driver emulates a SQL connector. |
| 8 |
|
| 9 |
See :doc:`how to change configuration backend<changeconfbackend>` to |
| 10 |
change your configuration database. |
| 11 |
|
| 12 |
Configuration |
| 13 |
------------- |
| 14 |
|
| 15 |
Prepare the database |
| 16 |
~~~~~~~~~~~~~~~~~~~~ |
| 17 |
|
| 18 |
.. code-block:: text |
| 19 |
|
| 20 |
CREATE KEYSPACE IF NOT EXISTS llng |
| 21 |
WITH REPLICATION = { |
| 22 |
'class' : 'SimpleStrategy', |
| 23 |
'replication_factor' : 1 |
| 24 |
}; |
| 25 |
DROP TABLE IF EXISTS llng.lmconfig; |
| 26 |
CREATE TABLE llng.lmconfig ( |
| 27 |
cfgnum int PRIMARY KEY, |
| 28 |
conf text |
| 29 |
); |
| 30 |
|
| 31 |
Connection settings |
| 32 |
~~~~~~~~~~~~~~~~~~~ |
| 33 |
|
| 34 |
Change configuration settings in ``/etc/lemonldap-ng/lemonldap-ng.ini`` |
| 35 |
file (section configuration): |
| 36 |
|
| 37 |
.. code-block:: ini |
| 38 |
|
| 39 |
[configuration] |
| 40 |
type = CDBI |
| 41 |
dbiChain = DBI:Cassandra:host=localhost;keyspace=llng |
| 42 |
dbiUser = lemonldaprw |
| 43 |
dbiPassword = mypassword |
| 44 |
; optional |
| 45 |
dbiTable = mytablename |
| 46 |
|