Table of Contents | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
...
For more information about Swarm Gateway, its concepts, and operations, seeSwarm Content Gateway.
Prerequisites
RHEL/RockyLinux 8 or CentOS 7.9 Setup
...
Info |
---|
InfoCreating a user group/user/password applies when PAM authentication is used. Create a user group via standard Linux user administration commands. |
Create a user group.
Code Block groupadd clusteradmins
Add a new user.
Code Block language bash adduser admin -g clusteradmins -p datacore passwd admin
Update CentOS and install EPEL.
Code Block language bash yum -y update yum -y install epel-release
Install NTP server and verify NTP starts on system boot.
Code Block language bash yum -y install chrony systemctl enable chronyd systemctl start chronyd
Install openjdk 1-8.
Code Block yum -y install java-1.8.0-openjdk
Configure the firewall to allow Swarm Gateway.
Code Block vi /etc/firewalld/services/swarm_gateway.xml
Code Block language xml <?xml version="1.0" encoding="utf-8"?> <service> <short>SwarmGateway</short> <description>Gateway server, which is based on http traffic.</description> <port protocol="tcp" port="80"/> <port protocol="tcp" port="91"/> <port protocol="tcp" port="8090"/> <port protocol="tcp" port="9095"/> <port protocol="tcp" port="9100"/> </service>
Restart the firewall service.
Add Swarm Gateway firewall rule (permanent)
Code Block firewall-cmd --permanent --add-service swarm_gateway
Reload the firewall service.
Code Block firewall-cmd --reload
Unzip the Swarm bundle package.
Code Block cd /root/datacore unzip Swarm-{bundle version here}.zip
Get the latest gateway and UI RPMs from the downloaded Swarm bundle.
Code Block language bash ll ~/datacore/Gateway/ -rw-r--r--. 1 root root 58718208 Dec 16 22:37 caringo-gateway-{version here}.noarch.rpm -rw-r--r--. 1 root root 395 Dec 16 22:37 README.txt -rw-r--r--. 1 root root 1927 Oct 2 04:17 RPM-GPG-KEY ll ~/datacore/UI/ -rw-r--r--. 1 root root 2835590 Oct 2 04:17 caringo-gateway-webui-{version here}.noarch.rpm -rw-r--r--. 1 root root 19286001 Dec 16 22:37 caringo-storage-webui-{version here}.noarch.rpm -rw-r--r--. 1 root root 359 Dec 16 22:37 README.txt -rw-r--r--. 1 root root 1927 Oct 2 04:17 RPM-GPG-KEY
Install Swarm RPM public key included with the distribution bundle.
Code Block rpm --import RPM-GPG-KEY
Install Cloud Gateway components.
Code Block yum -y install caringo-gateway-{version here}.noarch.rpm
Complete the IDSYS document for PAM user authentication.
Code Block vi /etc/caringo/cloudgateway/idsys.json
Code Block language json {"pam": { "name" : "idsys-pam", "description": "PAM identity management configuration", "cookieName": "token", "tokenPath": "/.TOKEN/", "tokenAdmin": "admin@" }}
Complete policy document for access control.
Code Block vi /etc/caringo/cloudgateway/policy.json
Code Block language json { "Id": "Root policy -- grant admins full access to everything", "Statement": [ { "Sid": "Grant admins full access", "Resource": "*", "Principal": { "user": ["admin@"], "group": ["clusteradmins@"] }, "Action": [ "*" ], "Effect": "Allow" } ] }
Install Gateway WebUI.
Code Block yum -y install caringo-gateway-webui-{version here}.noarch.rpm
Edit the Cloud Gateway configure file.
Code Block vi /etc/caringo/cloudgateway/gateway.cfg
Set adminDomain for the administrative domain name to be created. It is recommended to always set a unique name for each Swarm cluster to prevent replication collision between the Source and Target Swarm Cluster when using replication feeds. Set a unique name for each Swarm cluster to prevent replication collision.
Set hosts for the storage cluster nodes (IP address of storage nodes).
Set indexerHosts to Elasticsearch Servers (IP address of Elasticsearch nodes).
Enable S3.
EnableCluster Admin on the gateway server to allow usage of the Swarm Storage UI.
Set Management Port to 91. The admin user and password must be the same as configured in SCS.
Set managementUser to the same value as admin.username
Set managementPassword to the same value as admin.password
Code Block language bash # Following are only needed when enabling cluster_admin managementPort = 91 managementUser = admin managementPassword = datacore
Enable metering.
...