This section covers a brief introduction to Pundun and instructions to get you started using it.
Pundun can be built using git and rebar3 as follows.
git clone https://github.com/pundunlabs/pundun.git
cd pundun
git checkout -b v1.0.9 v1.0.9
./rebar3 as prod tar
This will create a tarball file _build/prod/rel/pundun/pundun-1.0.9.tar.gz
.
Unpack pundun-1.0.9.tar.gz file to desired target location. Below example may require superuser privilages.
adduser pundun
mkdir /opt/pundun
tar xzf _build/prod/rel/pundun/pundun-1.0.8.tar.gz -C /opt/pundun
chown -R pundun:pundun /opt/pundun/
Create public and private keys for ssh client and server.
su - pundun
cd /opt/pundun/lib/pundun-1.0.9/priv/ssh/
ssh-keygen -t rsa -f id_rsa
ssh-keygen -t rsa -f ssh_host_rsa_key
As pundun user:
export PATH=/opt/pundun/bin:$PATH
pundun start
It is recommended to increase the limits for maximum number of open files. On linux systems one may edit ‘/etc/security/limits.conf’ file to increase ‘nofile’ to enforce soft and hard limits.
Edit ‘/opt/pundun/etc/pundun.yaml’; Modify ‘pbp_server_options’ parameter.
SSL certificate and key files should be defined here. To generate self signed certificate files, one may use below commands.
cd /opt/pundun/lib/pundun-1.0.9/priv/
openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -days 1095 -nodes
Edit opt/pundun/etc/pundun.yaml
.
Modify pundun_cli_options
parameter.
Under specified user_dir
, place public and private keys for ssh client.
cd /opt/pundun/lib/pundun-1.0.9/priv/ssh
ssh-keygen -t rsa -f <user_dir>/id_rsa
Under specified system_dir
, place public and private keys for ssh host.
ssh-keygen -t rsa -f <system_dir>/ssh_host_rsa_key
Connect to CLI and change default password (admin:admin). Use Tab for completion of commands and arguments.
ssh admin@localhost -p8884
SSH server
Enter password for "admin"
password:
X11 forwarding request failed on channel 0
Welcome to Pundun Command Line Interface
pundun> user passwd admin 4dm1nP@ss
ok
pundun> Connection to localhost closed.
To set up a cluster of pundun nodes, one can use the CLI as follows.
ssh admin@localhost -p8884
SSH server
Enter password for "admin"
password:
Welcome to Pundun Command Line Interface
pundun> cluster show
Cluster: cl01
Node DC Rack Version
pundun832a87@sleepy dc01 rack01 1
pundun> cluster add_host sitting
ok
pundun> cluster pull pundun97ae64@sitting
ok
pundun> cluster show
Cluster: cl01
Node DC Rack Version
pundun832a87@sleepy dc01 rack01 1
pundun97ae64@sitting dc01 rack01 1
pundun>
Following client dirvers are provided to operate on pundun nodes.