GUI tool for managing Gluu Server and OpenLDAP replication.
The Cluster-mgr should NOT be internet-facing and preferably installed on a secure adminstrators computer or a VM on Digital Ocean or Amazon you can turn off when you're not using it. After the inital set-up, cluster-mgr is not required to be connected to the servers anymore.
Install prerequisites packages first. On debian or ubuntu, install them using apt-get
:
- First we must enable whatever computer/VM that cluster-mgr is installed on to establish an ssh connection to the servers that are going to be added to the cluster:
ssh-keygen -t rsa
-
This will provide you with a prompt to create a key-pair. Make sure that you do not input a password here, so cluster-mgr can open connections to the servers.
-
Now copy that key (default
id_rsa.pub
) to the/root/.ssh/authorized_keys
file. I prefer to open theid_rsa.pub
file withvi
then just copy the hash text into the bottom ofauthorized_keys
- Install necessary modules on the machine being used for cluster-mgr (Preferably not the Gluu servers or anything internet-facing)
apt-get install build-essential libssl-dev libffi-dev python-dev redis-server python-setuptools libsasl2-dev libldap2-dev redis-server
- Now clone the github repo on that same machine.
cd ~
git clone https://github.com/GluuFederation/cluster-mgr.git
- Install cluster-mgr
cd cluster-mgr/
python setup.py install
-
There may be a few errors here, but this is normal.
-
A successful installation will install a tool called clustermgr-cli.
- Prepare Databases
APP_MODE=dev clustermgr-cli db upgrade
APP_MODE=dev clustermgr-cli db migrate
- Run celery worker on a new terminal
celery -A clusterapp.celery worker &
- On another terminal run cluster-mgr
clustermgr-cli run
- Tunnel into cluster-mgr server
ssh -L 9999:localhost:5000 root@server
- If you're using a windows machine, like me, you can tunnel in with a saved PuTTY session that can already connect. Load that configuration in
PuTTY Configuration
, then on the left side go toConnections
->SSH
->Tunnels
. InSource port
input9999
and in Destination inputlocalhost:5000
, then hitAdd
. This will create a tunnel from your machine, accessed throughlocalhost:9999
into to the server aslocalhost:5000
.
- Navigate to the cluster-mgr web GUI
http://localhost:9999/